Comparing version 1.0.6 to 1.0.7
@@ -24,2 +24,6 @@ #! /usr/bin/env node | ||
const configFile = path_1.resolve(process.cwd(), project ? project : 'tsconfig.json'); | ||
console.info(configFile); | ||
if (!fs_1.existsSync(configFile)) { | ||
throw new Error('No valid tsconfig.json file. Specify one by tsc-alias -p tsconfig.json!'); | ||
} | ||
console.log(`tsconfig.json: ${configFile}`); | ||
@@ -26,0 +30,0 @@ const { baseUrl, outDir, paths } = util_1.loadConfig(configFile); |
{ | ||
"name": "tsc-alias", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Replace absolute paths to relative paths after typescript compilation", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -5,3 +5,3 @@ #! /usr/bin/env node | ||
import * as program from 'commander'; | ||
import { readFileSync, writeFileSync } from 'fs'; | ||
import { existsSync, readFileSync, writeFileSync } from 'fs'; | ||
import { sync } from 'globby'; | ||
@@ -33,2 +33,9 @@ import * as normalizePath from 'normalize-path'; | ||
const configFile = resolve(process.cwd(), project ? project : 'tsconfig.json'); | ||
console.info(configFile); | ||
if (!existsSync(configFile)) { | ||
throw new Error( | ||
'No valid tsconfig.json file. Specify one by tsc-alias -p tsconfig.json!' | ||
); | ||
} | ||
console.log(`tsconfig.json: ${configFile}`); | ||
@@ -35,0 +42,0 @@ |
Sorry, the diff of this file is not supported yet
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
188028
640