@lerna/npm-run-script
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.11
@@ -11,12 +11,24 @@ "use strict"; | ||
function runScript(script, { args, npmClient, pkg }) { | ||
function runScript(script, { args, npmClient, pkg, reject = true }) { | ||
log.silly("npmRunScript", script, args, pkg.name); | ||
return ChildProcessUtilities.exec(npmClient, ["run", script, ...args], getOpts(pkg)); | ||
const argv = ["run", script, ...args]; | ||
const opts = makeOpts(pkg, reject); | ||
return ChildProcessUtilities.exec(npmClient, argv, opts); | ||
} | ||
function stream(script, { args, npmClient, pkg }) { | ||
function stream(script, { args, npmClient, pkg, reject = true }) { | ||
log.silly("npmRunScript.stream", [script, args, pkg.name]); | ||
return ChildProcessUtilities.spawnStreaming(npmClient, ["run", script, ...args], getOpts(pkg), pkg.name); | ||
const argv = ["run", script, ...args]; | ||
const opts = makeOpts(pkg, reject); | ||
return ChildProcessUtilities.spawnStreaming(npmClient, argv, opts, pkg.name); | ||
} | ||
function makeOpts(pkg, reject) { | ||
return Object.assign(getOpts(pkg), { | ||
reject, | ||
}); | ||
} |
{ | ||
"name": "@lerna/npm-run-script", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.11", | ||
"description": "TODO", | ||
@@ -33,7 +33,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@lerna/child-process": "^3.0.0-beta.0", | ||
"@lerna/child-process": "^3.0.0-beta.11", | ||
"@lerna/get-npm-exec-opts": "^3.0.0-beta.0", | ||
"npmlog": "^4.1.2" | ||
}, | ||
"gitHead": "349b9c765bcbf38988d1fcd48313422417a04c8f" | ||
"gitHead": "197a09d58322e86f589ef7839c2438f830d72476" | ||
} |
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
2186
4
23