@naturalcycles/cli
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,1 +1,8 @@ | ||
## [1.1.6](https://github.com/NaturalCycles/cli/compare/v1.1.5...v1.1.6) (2020-06-25) | ||
### Bug Fixes | ||
* pass correct tsconfig path to tsconfig-paths ([b37f7df](https://github.com/NaturalCycles/cli/commit/b37f7dfe75b00af73df7a16369748a16cbd7debb)) | ||
## [1.1.5](https://github.com/NaturalCycles/cli/compare/v1.1.4...v1.1.5) (2020-06-25) | ||
@@ -2,0 +9,0 @@ |
@@ -53,3 +53,9 @@ #!/usr/bin/env node | ||
if (fs.existsSync(`./node_modules/tsconfig-paths`)) { | ||
require(require.resolve(`${cwd}/node_modules/tsconfig-paths/register`)); | ||
const tsconfig = JSON.parse(fs.readFileSync(projectTsconfigPath, 'utf8')); | ||
const { baseUrl, paths } = tsconfig.compilerOptions || {}; | ||
const tsconfigPaths = require(require.resolve(`${cwd}/node_modules/tsconfig-paths`)); | ||
tsconfigPaths.register({ | ||
baseUrl, | ||
paths, | ||
}); | ||
} | ||
@@ -56,0 +62,0 @@ const { NODE_OPTIONS } = process.env; |
@@ -41,3 +41,3 @@ { | ||
}, | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "CLI utils to be installed globally via 'npm i -g'", | ||
@@ -44,0 +44,0 @@ "author": "Natural Cycles Team", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
8406
119