Comparing version 3.0.0-fix.10 to 3.0.0-fix.11
28
cli.js
#!/usr/bin/env node | ||
if (process.env.npm_lifecycle_event === 'npx') { | ||
const command = process.argv[2]; | ||
const command = process.argv[2]; | ||
if (!command) { | ||
console.log(` | ||
if (!command) { | ||
console.log(` | ||
Usage: meteor-installer <command> | ||
@@ -14,14 +13,13 @@ | ||
`); | ||
process.exit(1); | ||
} | ||
process.exit(1); | ||
} | ||
if (command === 'install') { | ||
require('./install'); | ||
} else if (command === 'uninstall') { | ||
const { uninstall } = require('./uninstall'); | ||
uninstall(); | ||
} else { | ||
console.error(`Unrecognized command: ${command}`); | ||
process.exit(1); | ||
} | ||
if (command === 'install') { | ||
require('./install'); | ||
} else if (command === 'uninstall') { | ||
const { uninstall } = require('./uninstall'); | ||
uninstall(); | ||
} else { | ||
console.error(`Unrecognized command: ${command}`); | ||
process.exit(1); | ||
} |
{ | ||
"name": "meteor", | ||
"version": "3.0.0-fix.10", | ||
"version": "3.0.0-fix.11", | ||
"description": "Install Meteor", | ||
"main": "install.js", | ||
"scripts": { | ||
"postinstall": "node cli.js install" | ||
"install": "node cli.js install" | ||
}, | ||
@@ -23,3 +23,6 @@ "author": "zodern", | ||
}, | ||
"bin": "cli.js", | ||
"bin": { | ||
"install": "./cli.js install", | ||
"uninstall": "./cli.js uninstall" | ||
}, | ||
"engines": { | ||
@@ -26,0 +29,0 @@ "node": "<=20.x", |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
14
18491
502