Comparing version 3.3.3 to 3.3.5
@@ -145,6 +145,9 @@ "use strict"; | ||
} | ||
let finished = ifCondtition.then(shouldExecute => { | ||
let child = ifCondtition.then(shouldExecute => { | ||
if (!shouldExecute) { | ||
this.resultMap.set(pkg, ResultSpecialValues.Excluded); | ||
return Bromise.resolve(ProcResolution.Excluded); | ||
return Bromise.resolve({ | ||
status: ProcResolution.Excluded, | ||
process: null | ||
}); | ||
} | ||
@@ -161,10 +164,17 @@ let cmdLine = this.makeCmd(cmdArray); | ||
this.children.push(child); | ||
return this.throat(() => { | ||
child.start(); | ||
return child.finished.thenReturn(ProcResolution.Normal); | ||
return Promise.resolve({ status: ProcResolution.Normal, process: child }); | ||
}); | ||
return child.then(ch => { | ||
let processRun = this.throat(() => { | ||
if (ch.process) { | ||
ch.process.start(); | ||
return ch.process.finished; | ||
} | ||
return Bromise.resolve(); | ||
}); | ||
if (this.opts.mode === 'parallel' || !ch.process) | ||
return ch.status; | ||
else | ||
return processRun.thenReturn(ProcResolution.Normal); | ||
}); | ||
if (this.opts.mode === 'parallel') | ||
finished = Bromise.resolve(ProcResolution.Normal); | ||
return finished; | ||
}); | ||
@@ -171,0 +181,0 @@ } |
{ | ||
"name": "wsrun", | ||
"version": "3.3.3", | ||
"version": "3.3.5", | ||
"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
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
80510
1055