json-schema-to-typescript
Advanced tools
Comparing version 4.5.2 to 4.5.3
@@ -91,3 +91,3 @@ #!/usr/bin/env node | ||
} | ||
return fs_1.readFile(path_1.join(process.cwd(), argIn), 'utf-8'); | ||
return fs_1.readFile(path_1.resolve(process.cwd(), argIn), 'utf-8'); | ||
} | ||
@@ -94,0 +94,0 @@ function writeOutput(ts, argOut) { |
{ | ||
"name": "json-schema-to-typescript", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"description": "compile json schema to typescript typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
#!/usr/bin/env node | ||
import { readFile, writeFile } from 'mz/fs' | ||
import { join } from 'path' | ||
import { resolve } from 'path' | ||
import stdin = require('stdin') | ||
@@ -43,3 +43,3 @@ import { JSONSchema4 } from 'json-schema' | ||
} | ||
return readFile(join(process.cwd(), argIn), 'utf-8') | ||
return readFile(resolve(process.cwd(), argIn), 'utf-8') | ||
} | ||
@@ -46,0 +46,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1283274