Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function stream(script, { args, npmClient, pkg, prefix, reject = true }) {
log.silly("npmRunScript.stream", [script, args, pkg.name]);
const argv = ["run", script, ...args];
const opts = makeOpts(pkg, reject);
return ChildProcessUtilities.spawnStreaming(npmClient, argv, opts, prefix && pkg.name);
}
function stream(script, { args, npmClient, pkg, prefix, reject = true }) {
log.silly("npmRunScript.stream", [script, args, pkg.name]);
const argv = ["run", script, ...args];
const opts = makeOpts(pkg, reject);
return ChildProcessUtilities.spawnStreaming(npmClient, argv, opts, prefix && pkg.name);
}
runCommandInPackageStreaming(pkg) {
return ChildProcessUtilities.spawnStreaming(
this.command,
this.args,
this.getOpts(pkg),
this.prefix && pkg.name
);
}