npm-run-all
npm-run-all copied to clipboard
feature request - compatibility with https://www.npmjs.com/package/in-publish
Would it be possible to combine npm-run-all with https://www.npmjs.com/package/in-publish (2million downloads / month)?
in-publish allows to check if the prepublish hook was invoked by npm install or npm publish as you might want to run your test scripts only if not in install mode (there are endless open issues for npm on this topic).
Maybe you could just add a --skip-command="install" parameter and use these two functions of in-publish:
https://github.com/iarna/in-publish/blob/master/index.js#L22-L28
Thank you for this issue.
However, I don't want to add any option for this for the following reasons:
in-publishis very small CLI, so it's more proper thannpm-run-allto be included independencies. (npm-run-allis large module relatively.)- That option is going to be a short life because the problem of
prepublishscript is going to resolve onnpm@4.
Okay actually the npm@4 way is a good approach although yarn is struggling to implement it