@npmcli/run-script
Advanced tools
Comparing version 1.7.3 to 1.7.4
@@ -6,2 +6,3 @@ const makeSpawnArgs = require('./make-spawn-args.js') | ||
const signalManager = require('./signal-manager.js') | ||
const isServerPackage = require('./is-server-package.js') | ||
@@ -39,2 +40,4 @@ // you wouldn't like me when I'm angry... | ||
cmd = defaultGypInstallScript | ||
else if (event === 'start' && await isServerPackage(path)) | ||
cmd = 'node server.js' + args.map(a => ` ${JSON.stringify(a)}`).join('') | ||
@@ -41,0 +44,0 @@ if (!cmd) |
@@ -36,4 +36,3 @@ const runningProcs = new Set() | ||
proc.once('exit', ({ code }) => { | ||
process.exitCode = process.exitCode || code | ||
proc.once('exit', () => { | ||
runningProcs.delete(proc) | ||
@@ -40,0 +39,0 @@ cleanupListeners() |
{ | ||
"name": "@npmcli/run-script", | ||
"version": "1.7.3", | ||
"version": "1.7.4", | ||
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)", |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
15660
14
246
3