@lerna/run-lifecycle
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="3.3.1"></a> | ||
## [3.3.1](https://github.com/lerna/lerna/compare/v3.3.0...v3.3.1) (2018-09-11) | ||
### Bug Fixes | ||
* **run-lifecycle:** Remove repetitive error logging ([b8915e7](https://github.com/lerna/lerna/commit/b8915e7)) | ||
<a name="3.3.0"></a> | ||
@@ -8,0 +20,0 @@ # [3.3.0](https://github.com/lerna/lerna/compare/v3.2.1...v3.3.0) (2018-09-06) |
{ | ||
"name": "@lerna/run-lifecycle", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "An internal Lerna tool", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "901e6d54a47151dfed3d6ed2912804b97d05c6b5" | ||
"gitHead": "5da13190852897ac37349a28a0b24470ec7bd833" | ||
} |
@@ -40,16 +40,16 @@ "use strict"; | ||
err => { | ||
// propagate the exit code | ||
const exitCode = err.errno || 1; | ||
// error logging has already occurred on stderr, but we need to stop the chain | ||
log.error("lifecycle", "%j errored in %j, ejecting", stage, pkg.name); | ||
log.error("lifecycle", "%j errored in %j, exiting %d", stage, pkg.name, exitCode); | ||
// ensure clean logging... | ||
err.pkg = pkg; | ||
// ensure clean logging, avoiding spurious log dump | ||
err.name = "ValidationError"; | ||
// ...propagate the exit code... | ||
const exitCode = err.errno; | ||
// (using the property our yargs.fail() handler expects :P) | ||
// our yargs.fail() handler expects a numeric .code, not .errno | ||
err.code = exitCode; | ||
process.exitCode = exitCode; | ||
// ...and send it on its merry way | ||
// stop the chain | ||
throw err; | ||
@@ -56,0 +56,0 @@ } |
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
5158