-
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
ci: run install scripts for root project #2316
Conversation
'preinstall', | ||
'install', | ||
'postinstall', | ||
'prepublish', // XXX should we remove this finally?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering, I thought prepublish
was deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't remove it yet :-) imo the churn isn't worth it. it'd be better to remove prepublishOnly and make prepublish
, only running on prepublish, the actual behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think since we already shipped v7, we have this on the agenda for npm v8. It's a breaking change if we remove it, and at least an annoying change (if not actually breaking) if we deprecate it with a warning.
- remove (or deprecate with a warning)
prepublish
on install/ci - remove (or deprecate with a warning)
prepublishOnly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that’s the plan, I’d prefer the former :-D (which, iirc, was the original planned end state)
`npm ci` should run all the same preinstall/install/postinstall/prepare scripts for the root project just like `npm install`. Fixes: #1905 PR-URL: #2316 Credit: @isaacs Close: #2316 Reviewed-by: @ruyadorno
33859cc
to
d825e90
Compare
npm ci
should run all the same preinstall/install/postinstall/preparescripts for the root project just like
npm install
.Fixes: #1905
References