File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
6271Examples:
6372 $ npm-run-all --serial clean lint build:**
Original file line number Diff line number Diff 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'.
Original file line number Diff line number Diff 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'.
You can’t perform that action at this time.
0 commit comments