This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
npm-scripts that start with pre
or post
can run, but cannot run their pre/post commands
#16593
Closed
1 of 4 tasks
Labels
I'm opening this issue because:
What's going wrong?
If I created npm-script named
preview
,npm run preview
works fine. However,prepreview
orpostpreview
script does not run with this command. The same occurred onpresent
,poster
, or a word that starts withpre
orpost
.How can the CLI team reproduce the problem?
In
package.json
:and then
Result:
Expected result:
supporting information:
npm -v
prints: 4.2.0node -v
prints: v7.10.0npm config get registry
prints: https://registry.npmjs.org/The text was updated successfully, but these errors were encountered: