@naturalcycles/cli
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,8 @@ | ||
## [1.1.2](https://github.com/NaturalCycles/cli/compare/v1.1.1...v1.1.2) (2020-04-08) | ||
### Bug Fixes | ||
* remove argv[1] ([1292a35](https://github.com/NaturalCycles/cli/commit/1292a3536683748f53254c2b608ad5a1e5840d44)) | ||
## [1.1.1](https://github.com/NaturalCycles/cli/compare/v1.1.0...v1.1.1) (2020-04-08) | ||
@@ -2,0 +9,0 @@ |
@@ -19,2 +19,20 @@ #!/usr/bin/env node | ||
const projectTsconfigPath = await ensureProjectTsconfigScripts(); | ||
// remove argv[1] from the array | ||
// before: | ||
// '/usr/local/bin/node', | ||
// '/Users/kirill/Idea/cli/node_modules/.bin/tsn', << that one | ||
// './src/bin/tsn.ts', | ||
// 'testscript.ts' | ||
// | ||
// after: | ||
// '/usr/local/bin/node', | ||
// './src/bin/tsn.ts', | ||
// 'testscript.ts' | ||
console.log({ | ||
argv1: process.argv, | ||
}); | ||
process.argv = [process.argv[0], ...process.argv.slice(2)]; | ||
console.log({ | ||
argv2: process.argv, | ||
}); | ||
const [, , _scriptPath = '', ..._processArgs] = process.argv; | ||
@@ -21,0 +39,0 @@ const cwd = process.cwd(); |
{ | ||
"name": "@naturalcycles/cli", | ||
"scripts": { | ||
"tsn-debug": "ts-node -T ./src/bin/tsn.ts testscript.ts" | ||
"tsn-debug": "tsn ./src/bin/tsn.ts testscript.ts" | ||
}, | ||
@@ -40,3 +40,3 @@ "dependencies": { | ||
}, | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "CLI utils to be installed globally via 'npm i -g'", | ||
@@ -43,0 +43,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
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
6850
100