How to use the @lerna/child-process.spawnStreaming function in @lerna/child-process

To help you get started, we’ve selected a few @lerna/child-process examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lerna / lerna / utils / npm-run-script / npm-run-script.js View on Github external
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);
}
github lerna / lerna / utils / npm-run-script / npm-run-script.js View on Github external
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);
}
github lerna / lerna / commands / exec / index.js View on Github external
runCommandInPackageStreaming(pkg) {
    return ChildProcessUtilities.spawnStreaming(
      this.command,
      this.args,
      this.getOpts(pkg),
      this.prefix && pkg.name
    );
  }

@lerna/child-process

Lerna's internal child_process wrapper

MIT
Latest version published 1 year ago

Package Health Score

91 / 100
Full package analysis