-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Neither --ignore-scripts nor --ignore-prepublish are respected by npm publish #2755
Comments
I think the bug is broader than just |
Also encountering this same issue using npm v7.10 with node.js v16.0.0 |
#2434 reported this behavior for Per this issue, it's also happening with |
I'm also seeing it with this command:
|
|
Perhaps slightly off-topic for this issue, but are there plans to make this flag work for all commands for which it was supported in NPM 6? |
If folks are seeing this with OTHER commands, open another issue. Please be sure that it is not this other bug we are already tracking where git dependencies' |
fixed in |
Thanks @wraithgar! |
Current Behavior:
When a package.json contains a "prepublishOnly" script, this is executed regardless of calling npm via
npm --ignore-scripts
ornpm --ignore-prepublish
Expected Behavior:
I'm not sure, if "--ignore-prepublish" refers to "prepublish" only (:-)) or to "prepublishOnly" as well...
Anyway, IMO
--ignore-scripts
should prevent "prepublishOnly" from being run.Steps To Reproduce:
Well, have package.json with
and run
npm publish --ignore-scripts --dry-run
Environment:
Maybe related to #2434?
npm6 did it right, btw.
Edit: also git tag is commit'ed - which might not be a good idea for "--ignore-scripts".
The text was updated successfully, but these errors were encountered: