Comparing version 3.3.5 to 3.4.0
@@ -58,3 +58,3 @@ "use strict"; | ||
if (code > 0) { | ||
const msg = '`' + this.cmd + '` failed with exit code ' + code; | ||
const msg = '`' + this.cmdString + '` failed with exit code ' + code; | ||
if (!this.opts.silent) | ||
@@ -67,2 +67,4 @@ console.error(msg); | ||
}); | ||
// ignore if unhandled | ||
this._finished.promise.catch(() => { }); | ||
} | ||
@@ -69,0 +71,0 @@ stop() { |
@@ -228,6 +228,11 @@ "use strict"; | ||
this.runList = new Set(pkgs); | ||
return Bromise.all(pkgs.map(pkg => this.lookupOrRun(cmd, pkg))) | ||
return (Bromise.all(pkgs.map(pkg => this.lookupOrRun(cmd, pkg))) | ||
// Wait for any of them to error | ||
.then(() => Bromise.all(this.children.map(c => c.exitError))) | ||
.catch(err => this.opts.fastExit && this.closeAll()) | ||
.then(() => this.checkResultsAndReport(cmd, pkgs)); | ||
// If any of them do, and fastExit is enabled, stop every other | ||
.catch(_err => this.opts.fastExit && this.closeAll()) | ||
// Wait for the exit codes of all processes | ||
.then(() => Bromise.all(this.children.map(c => c.exitCode))) | ||
// Generate report | ||
.then(() => this.checkResultsAndReport(cmd, pkgs))); | ||
} | ||
@@ -234,0 +239,0 @@ } |
{ | ||
"name": "wsrun", | ||
"version": "3.3.5", | ||
"version": "3.4.0", | ||
"description": "executes commands on packages in parallel, but is aware of the dependencies between them", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
81162
1062