diff options
author | Rebecca Turner <me@re-becca.org> | 2018-04-12 23:44:42 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2018-04-12 23:44:44 +0300 |
commit | 3c0bbcb8e5440a3b90fabcce85d7a1d31e2ecbe7 (patch) | |
tree | acd7674532f07c0c5e219d1a0de9ea67a16b7758 /node_modules | |
parent | 73dc974555217207fb384e39d049da19be2f79ba (diff) |
libnpx@10.1.1
add --always-spawn to opt out of process takeover optimization feature
Credit: @jdalton
PR-URL: https://github.com/zkat/npx/pull/172
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/libnpx/CHANGELOG.md | 15 | ||||
-rw-r--r-- | node_modules/libnpx/index.js | 2 | ||||
-rw-r--r-- | node_modules/libnpx/libnpx.1 | 2 | ||||
-rw-r--r-- | node_modules/libnpx/locales/en.json | 3 | ||||
-rw-r--r-- | node_modules/libnpx/package.json | 24 | ||||
-rw-r--r-- | node_modules/libnpx/parse-args.js | 4 |
6 files changed, 35 insertions, 15 deletions
diff --git a/node_modules/libnpx/CHANGELOG.md b/node_modules/libnpx/CHANGELOG.md index baa5d37a4..1cd8653c5 100644 --- a/node_modules/libnpx/CHANGELOG.md +++ b/node_modules/libnpx/CHANGELOG.md @@ -2,6 +2,21 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +<a name="10.1.1"></a> +## [10.1.1](https://github.com/zkat/npx/compare/v10.1.0...v10.1.1) (2018-04-12) + + + +<a name="10.1.0"></a> +# [10.1.0](https://github.com/zkat/npx/compare/v10.0.1...v10.1.0) (2018-04-12) + + +### Features + +* **spawn:** add --always-spawn to opt out of process takeover optimization feature ([#172](https://github.com/zkat/npx/issues/172)) ([c0d6abc](https://github.com/zkat/npx/commit/c0d6abc)) + + + <a name="10.0.1"></a> ## [10.0.1](https://github.com/zkat/npx/compare/v10.0.0...v10.0.1) (2018-03-08) diff --git a/node_modules/libnpx/index.js b/node_modules/libnpx/index.js index e65cd7207..4af3d8795 100644 --- a/node_modules/libnpx/index.js +++ b/node_modules/libnpx/index.js @@ -253,7 +253,7 @@ function installPackages (specs, prefix, opts) { module.exports._execCommand = execCommand function execCommand (_existing, argv) { return findNodeScript(_existing, argv).then(existing => { - if (existing && !argv.nodeArg && !argv.shell && existing !== process.argv[1]) { + if (existing && !argv.alwaysSpawn && !argv.nodeArg && !argv.shell && existing !== process.argv[1]) { const Module = require('module') // let it take over the process. This means we can skip node startup! if (!argv.noYargs) { diff --git a/node_modules/libnpx/libnpx.1 b/node_modules/libnpx/libnpx.1 index 24345edcd..472472e77 100644 --- a/node_modules/libnpx/libnpx.1 +++ b/node_modules/libnpx/libnpx.1 @@ -1,4 +1,4 @@ -.TH "NPX" "1" "March 2018" "libnpx@10.0.0" "User Commands" +.TH "NPX" "1" "April 2018" "libnpx@10.1.0" "User Commands" .SH "NAME" \fBnpx\fR \- execute npm package binaries .SH SYNOPSIS diff --git a/node_modules/libnpx/locales/en.json b/node_modules/libnpx/locales/en.json index 358e34342..d3463ae31 100644 --- a/node_modules/libnpx/locales/en.json +++ b/node_modules/libnpx/locales/en.json @@ -25,5 +25,6 @@ "package": "package", "npx: installed %s in %ss": "npx: installed %s in %ss", "Suppress output from npx itself. Subcommands will not be affected.": "Suppress output from npx itself. Subcommands will not be affected.", - "Extra node argument when calling a node binary.": "Extra node argument when calling a node binary." + "Extra node argument when calling a node binary.": "Extra node argument when calling a node binary.", + "Always spawn a child process to execute the command.": "Always spawn a child process to execute the command." }
\ No newline at end of file diff --git a/node_modules/libnpx/package.json b/node_modules/libnpx/package.json index 29feb48f7..27c9c4445 100644 --- a/node_modules/libnpx/package.json +++ b/node_modules/libnpx/package.json @@ -1,32 +1,32 @@ { - "_from": "libnpx@10.0.1", - "_id": "libnpx@10.0.1", + "_from": "libnpx@10.1.1", + "_id": "libnpx@10.1.1", "_inBundle": false, - "_integrity": "sha512-87491jxL9jeP2rDF4px3JNHTKCsHFTRAuRkGZ9/b0vb/312mxFCAsuNcGvbw0BTED0iGf+IeNDgBGy9lcy3pTQ==", + "_integrity": "sha512-IjEiIXKZqqEWNFx5PpdoF6ayOPhCaRhLOZyUeOiMXrzXLEJ2cR78BffAY++sTIdxaAwSXkp0cFBbKNEv8ou/qw==", "_location": "/libnpx", "_phantomChildren": { - "lru-cache": "4.1.1", + "lru-cache": "4.1.2", "strip-ansi": "4.0.0", "which": "1.3.0" }, "_requested": { "type": "version", "registry": true, - "raw": "libnpx@10.0.1", + "raw": "libnpx@10.1.1", "name": "libnpx", "escapedName": "libnpx", - "rawSpec": "10.0.1", + "rawSpec": "10.1.1", "saveSpec": null, - "fetchSpec": "10.0.1" + "fetchSpec": "10.1.1" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/libnpx/-/libnpx-10.0.1.tgz", - "_shasum": "a0104a1336e7621e52172d7970dc1b97fa17ae89", - "_spec": "libnpx@10.0.1", - "_where": "/Users/zkat/Documents/code/npm", + "_resolved": "https://registry.npmjs.org/libnpx/-/libnpx-10.1.1.tgz", + "_shasum": "69f7c3bcde6090f26a18d0d730632d4cbcd26007", + "_spec": "libnpx@10.1.1", + "_where": "/Users/rebecca/code/npm", "author": { "name": "Kat Marchán", "email": "kzm@sykosomatic.org" @@ -107,5 +107,5 @@ "update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'", "update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'" }, - "version": "10.0.1" + "version": "10.1.1" } diff --git a/node_modules/libnpx/parse-args.js b/node_modules/libnpx/parse-args.js index 3f5066055..d655442cb 100644 --- a/node_modules/libnpx/parse-args.js +++ b/node_modules/libnpx/parse-args.js @@ -179,6 +179,10 @@ function yargsParser (argv, defaultNpm) { type: 'string', describe: Y()`Location of the npm cache.` }) + .option('always-spawn', { + describe: Y()`Always spawn a child process to execute the command.`, + type: 'boolean' + }) .option('no-install', { type: 'boolean', describe: Y()`Skip installation if a package is missing.` |