@lerna/run-lifecycle
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-rc.0
{ | ||
"name": "@lerna/run-lifecycle", | ||
"version": "3.0.0-beta.0", | ||
"description": "TODO", | ||
"version": "3.0.0-rc.0", | ||
"description": "An internal Lerna tool", | ||
"keywords": [ | ||
@@ -33,6 +33,7 @@ "lerna", | ||
"dependencies": { | ||
"@lerna/npm-conf": "^3.0.0-rc.0", | ||
"npm-lifecycle": "^2.0.0", | ||
"npmlog": "^4.1.2" | ||
}, | ||
"gitHead": "349b9c765bcbf38988d1fcd48313422417a04c8f" | ||
"gitHead": "1ab24c152d3ff5c2b9453bcaafeb4b5e432b2410" | ||
} |
# `@lerna/run-lifecycle` | ||
> description TODO | ||
> An internal Lerna tool | ||
## Usage | ||
TODO | ||
You probably shouldn't, at least directly. | ||
Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI. |
@@ -5,4 +5,6 @@ "use strict"; | ||
const npmLifecycle = require("npm-lifecycle"); | ||
const npmConf = require("@lerna/npm-conf"); | ||
module.exports = runLifecycle; | ||
module.exports.createRunner = createRunner; | ||
@@ -38,1 +40,15 @@ function runLifecycle(pkg, stage, opts) { | ||
} | ||
function createRunner(commandOptions) { | ||
const cfg = npmConf(commandOptions); | ||
return (pkg, stage) => { | ||
if (pkg.scripts && pkg.scripts[stage]) { | ||
return runLifecycle(pkg, stage, cfg).catch(err => { | ||
log.error("lifecycle", `error running ${stage} in ${pkg.name}\n`, err.stack || err); | ||
}); | ||
} | ||
return Promise.resolve(); | ||
}; | ||
} |
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
3787
5
40
10
3
+ Added@lerna/npm-conf@^3.0.0-rc.0
+ Added@lerna/npm-conf@3.16.0(transitive)
+ Addedconfig-chain@1.1.13(transitive)
+ Addedini@1.3.8(transitive)
+ Addedpify@4.0.1(transitive)
+ Addedproto-list@1.2.4(transitive)