Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@naturalcycles/cli

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/cli - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

7

CHANGELOG.md

@@ -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();

4

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc