install-peers-cli
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -24,6 +24,16 @@ #!/usr/bin/env node | ||
function installPeerDeps() { | ||
var argv; | ||
// only run on `install` | ||
if (process.env['npm_config_argv']) { | ||
argv = JSON.parse(process.env['npm_config_argv']); | ||
if (argv && argv['cooked'][0] !== 'install') { | ||
console.log('Only run install-peer-deps after `install` command. Skipping.'); | ||
return; | ||
} | ||
} | ||
// check for the "kill switch" | ||
if (process.env[envLabel]) { | ||
console.log('Skipping installing peerDependencies.'); | ||
console.log('Only run install-peer-deps once. Skipping.'); | ||
return; | ||
@@ -30,0 +40,0 @@ } |
{ | ||
"name": "install-peers-cli", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "CLI to install project's peerDependencies, without side effects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
8855
166
13