Skip to content

Commit 2cdbd27

Browse files
bcomneslumirlumir
andauthored
fix: update help.js to include --node-run option details (#230)
* fix: update `help.js` to include `--node-run` option details * wip * Add flag to the other two bins --------- Co-authored-by: lumir <rpfos@naver.com>
1 parent 66883cb commit 2cdbd27

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

bin/npm-run-all/help.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ Options:
5858
'npm run foo && npm run bar'.
5959
'--serial' is a synonym of '--sequential'.
6060
--silent - - - - - - - - Set 'silent' to the log level of npm.
61+
-x, --node-run - - - - - Use \`node --run\` to execute scripts instead of
62+
the package manager. This is faster but
63+
intentionally omits: pre/post lifecycle hooks
64+
and npm_* environment variables. node_modules/.bin
65+
is still added to PATH. Sets NODE_RUN_SCRIPT_NAME
66+
and NODE_RUN_PACKAGE_JSON_PATH instead.
67+
Can also be enabled project-wide by setting
68+
\`"npm-run-all2": { "nodeRun": true }\` in
69+
package.json.
6170
6271
Examples:
6372
$ npm-run-all --serial clean lint build:**

bin/run-p/help.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ Options:
5050
-r, --race - - - - - - - Set the flag to kill all tasks when a task
5151
finished with zero.
5252
-s, --silent - - - - - - Set 'silent' to the log level of npm.
53+
-x, --node-run - - - - - Use \`node --run\` to execute scripts instead of
54+
the package manager. This is faster but
55+
intentionally omits: pre/post lifecycle hooks
56+
and npm_* environment variables. node_modules/.bin
57+
is still added to PATH. Sets NODE_RUN_SCRIPT_NAME
58+
and NODE_RUN_PACKAGE_JSON_PATH instead.
59+
Can also be enabled project-wide by setting
60+
\`"npm-run-all2": { "nodeRun": true }\` in
61+
package.json.
5362
5463
Shorthand aliases can be combined.
5564
For example, '-clns' equals to '-c -l -n -s'.

bin/run-s/help.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ Options:
4444
-n, --print-name - - - - Set the flag to print the task name before
4545
running each task.
4646
-s, --silent - - - - - - Set 'silent' to the log level of npm.
47+
-x, --node-run - - - - - Use \`node --run\` to execute scripts instead of
48+
the package manager. This is faster but
49+
intentionally omits: pre/post lifecycle hooks
50+
and npm_* environment variables. node_modules/.bin
51+
is still added to PATH. Sets NODE_RUN_SCRIPT_NAME
52+
and NODE_RUN_PACKAGE_JSON_PATH instead.
53+
Can also be enabled project-wide by setting
54+
\`"npm-run-all2": { "nodeRun": true }\` in
55+
package.json.
4756
4857
Shorthand aliases can be combined.
4958
For example, '-clns' equals to '-c -l -n -s'.

0 commit comments

Comments
 (0)