@lerna/npm-run-script
Advanced tools
Comparing version 3.16.5 to 4.0.0
@@ -6,2 +6,28 @@ # Change Log | ||
# [4.0.0](https://github.com/lerna/lerna/compare/v3.22.1...v4.0.0) (2021-02-10) | ||
### Features | ||
* Consume named exports of sibling modules ([63499e3](https://github.com/lerna/lerna/commit/63499e33652bc78fe23751875d74017e2f16a689)) | ||
* Drop support for Node v6.x & v8.x ([ff4bb4d](https://github.com/lerna/lerna/commit/ff4bb4da215555e3bb136f5af09b5cbc631e57bb)) | ||
* Expose named export ([c1303f1](https://github.com/lerna/lerna/commit/c1303f13adc4cf15f96ff25889b52149f8224c0e)) | ||
* Remove default export ([e2f1ec3](https://github.com/lerna/lerna/commit/e2f1ec3dd049d2a89880029908a2aa7c66f15082)) | ||
### BREAKING CHANGES | ||
* The default export has been removed, please use a named export instead. | ||
* Node v6.x & v8.x are no longer supported. Please upgrade to the latest LTS release. | ||
Here's the gnarly one-liner I used to make these changes: | ||
``` | ||
npx lerna exec --concurrency 1 --stream -- 'json -I -f package.json -e '"'"'this.engines=this.engines||{};this.engines.node=">= 10.18.0"'"'" | ||
``` | ||
(requires `npm i -g json` beforehand) | ||
## [3.16.5](https://github.com/lerna/lerna/compare/v3.16.4...v3.16.5) (2019-10-07) | ||
@@ -8,0 +34,0 @@ |
@@ -5,9 +5,9 @@ "use strict"; | ||
const ChildProcessUtilities = require("@lerna/child-process"); | ||
const getOpts = require("@lerna/get-npm-exec-opts"); | ||
const childProcess = require("@lerna/child-process"); | ||
const { getNpmExecOpts } = require("@lerna/get-npm-exec-opts"); | ||
module.exports = runScript; | ||
module.exports.stream = stream; | ||
module.exports.npmRunScript = npmRunScript; | ||
module.exports.npmRunScriptStreaming = npmRunScriptStreaming; | ||
function runScript(script, { args, npmClient, pkg, reject = true }) { | ||
function npmRunScript(script, { args, npmClient, pkg, reject = true }) { | ||
log.silly("npmRunScript", script, args, pkg.name); | ||
@@ -18,7 +18,7 @@ | ||
return ChildProcessUtilities.exec(npmClient, argv, opts); | ||
return childProcess.exec(npmClient, argv, opts); | ||
} | ||
function stream(script, { args, npmClient, pkg, prefix, reject = true }) { | ||
log.silly("npmRunScript.stream", [script, args, pkg.name]); | ||
function npmRunScriptStreaming(script, { args, npmClient, pkg, prefix, reject = true }) { | ||
log.silly("npmRunScriptStreaming", [script, args, pkg.name]); | ||
@@ -28,9 +28,9 @@ const argv = ["run", script, ...args]; | ||
return ChildProcessUtilities.spawnStreaming(npmClient, argv, opts, prefix && pkg.name); | ||
return childProcess.spawnStreaming(npmClient, argv, opts, prefix && pkg.name); | ||
} | ||
function makeOpts(pkg, reject) { | ||
return Object.assign(getOpts(pkg), { | ||
return Object.assign(getNpmExecOpts(pkg), { | ||
reject, | ||
}); | ||
} |
{ | ||
"name": "@lerna/npm-run-script", | ||
"version": "3.16.5", | ||
"version": "4.0.0", | ||
"description": "An internal Lerna tool", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"engines": { | ||
"node": ">= 6.9.0" | ||
"node": ">= 10.18.0" | ||
}, | ||
@@ -35,7 +35,7 @@ "publishConfig": { | ||
"dependencies": { | ||
"@lerna/child-process": "3.16.5", | ||
"@lerna/get-npm-exec-opts": "3.13.0", | ||
"@lerna/child-process": "4.0.0", | ||
"@lerna/get-npm-exec-opts": "4.0.0", | ||
"npmlog": "^4.1.2" | ||
}, | ||
"gitHead": "f0574092a2db90142b3a27ec1a4941cddbdcdf62" | ||
"gitHead": "4582c476e07dddddd6b2e3ab6e7f52c1f9eed59a" | ||
} |
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
7622
+ Added@lerna/child-process@4.0.0(transitive)
+ Added@lerna/get-npm-exec-opts@4.0.0(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.5(transitive)
+ Addedexeca@5.1.1(transitive)
+ Addedget-stream@6.0.1(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhuman-signals@2.1.0(transitive)
+ Addedis-stream@2.0.1(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addednpm-run-path@4.0.1(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedstrip-final-newline@2.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedwhich@2.0.2(transitive)
- Removed@lerna/child-process@3.16.5(transitive)
- Removed@lerna/get-npm-exec-opts@3.13.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcross-spawn@6.0.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedexeca@1.0.0(transitive)
- Removedget-stream@4.1.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removednice-try@1.0.5(transitive)
- Removednpm-run-path@2.0.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedpath-key@2.0.1(transitive)
- Removedpump@3.0.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedshebang-command@1.2.0(transitive)
- Removedshebang-regex@1.0.0(transitive)
- Removedstrip-eof@1.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedwhich@1.3.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@lerna/child-process@4.0.0