Open raszi opened 3 years ago
Note that pack
is not a script, npm-run-all pack
is the equivalent of npm run pack
not npm pack
Is there a way to run npm pack
inside an npm-run-all
script, or can npm-run-all
only run other npm scripts?
I guess the answer is in the README - it can only run other npm scripts.
A CLI tool to run multiple npm-scripts in parallel or sequential.
This limitation, unfortunately, prevents the wider usage of this tool.
This tool should not be restricted to only npm commands.
Is there a way to run
npm pack
inside annpm-run-all
script, or cannpm-run-all
only run other npm scripts?
I guess you can try adding this:
{
"scripts": {
"pack": "npm pack"
}
}
and then use npx npm-run-all pack
Finally, I use this tool, which can execute arbitrary commands in parallel or serially, and of course it also includes npm.
E.g:
npm i -g qs-cli
# Save the command, then execute the command in parallel
qs -n xx -p "ping github.com" "ping httpbin.org"
# Re-execute the command at any location
qs -s xx
It works with a regular npm command:
Does not work with
npm-run-all
: