Skip to content

Commit bb9e627

Browse files

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

bin/npm-run-all/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Options:
3434
--max-parallel <number> - Set the maximum number of parallelism. Default is
3535
unlimited.
3636
--npm-path <string> - - - Set the path to npm. Default is the value of
37-
environment variable NPM_EXECPATH.
37+
environment variable npm_execpath.
3838
If the variable is not defined, then it's "npm".
3939
In this case, the "npm" command must be found in
4040
environment variable PATH.

bin/run-p/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Options:
3434
--max-parallel <number> - Set the maximum number of parallelism. Default is
3535
unlimited.
3636
--npm-path <string> - - - Set the path to npm. Default is the value of
37-
environment variable NPM_EXECPATH.
37+
environment variable npm_execpath.
3838
If the variable is not defined, then it's "npm."
3939
In this case, the "npm" command must be found in
4040
environment variable PATH.

bin/run-s/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Options:
3232
itself will exit with non-zero code if one or
3333
more tasks threw error(s).
3434
--npm-path <string> - - - Set the path to npm. Default is the value of
35-
environment variable NPM_EXECPATH.
35+
environment variable npm_execpath.
3636
If the variable is not defined, then it's "npm."
3737
In this case, the "npm" command must be found in
3838
environment variable PATH.

docs/node-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Run npm-scripts.
5050
Default is `Number.POSITIVE_INFINITY`.
5151
- **options.npmPath** `string` --
5252
The path to npm.
53-
Default is `process.env.NPM_EXECPATH` or `"npm"`.
53+
Default is `process.env.npm_execpath` or `"npm"`.
5454
- **options.packageConfig** `object|null` --
5555
The map-like object to overwrite package configs.
5656
Keys are package names.

docs/npm-run-all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Options:
3939
--max-parallel <number> - Set the maximum number of parallelism. Default is
4040
unlimited.
4141
--npm-path <string> - - - Set the path to npm. Default is the value of
42-
environment variable NPM_EXECPATH.
42+
environment variable npm_execpath.
4343
If the variable is not defined, then it's "npm."
4444
In this case, the "npm" command must be found in
4545
environment variable PATH.

docs/run-p.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Options:
3838
--max-parallel <number> - Set the maximum number of parallelism. Default is
3939
unlimited.
4040
--npm-path <string> - - - Set the path to npm. Default is the value of
41-
environment variable NPM_EXECPATH.
41+
environment variable npm_execpath.
4242
If the variable is not defined, then it's "npm."
4343
In this case, the "npm" command must be found in
4444
environment variable PATH.

docs/run-s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Options:
3636
itself will exit with non-zero code if one or
3737
more tasks threw error(s).
3838
--npm-path <string> - - - Set the path to npm. Default is the value of
39-
environment variable NPM_EXECPATH.
39+
environment variable npm_execpath.
4040
If the variable is not defined, then it's "npm."
4141
In this case, the "npm" command must be found in
4242
environment variable PATH.

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function maxLength(length, name) {
204204
* Default is unlimited.
205205
* @param {string} options.npmPath -
206206
* The path to npm.
207-
* Default is `process.env.NPM_EXECPATH`.
207+
* Default is `process.env.npm_execpath`.
208208
* @returns {Promise}
209209
* A promise object which becomes fullfilled when all npm-scripts are completed.
210210
*/

lib/run-task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ module.exports = function runTask(task, options) {
136136
}
137137

138138
if (path.extname(options.npmPath || "a.js") === ".js") {
139-
const npmPath = options.npmPath || process.env.NPM_EXECPATH //eslint-disable-line no-process-env
139+
const npmPath = options.npmPath || process.env.npm_execpath //eslint-disable-line no-process-env
140140
const execPath = npmPath ? process.execPath : "npm"
141141
const spawnArgs = [].concat(
142142
npmPath ? [npmPath, "run"] : ["run"],

0 commit comments

Comments
 (0)