-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
npm@4 was released a few minutes ago, and it deprecates the prepublish verb, renaming it to prepare, and adding a prepublishOnly (which runs only on publish).
In yarn's case, the only changes should be also running prepare wherever prepublish ran and prepublishOnly on publish (if yarn can publish?). prepublish should still be run, but probably should get a deprecation warning.
npm@5 is expected to stop running prepublish entirely on npm install and npm pack (i.e. run only on npm publish), and then an npm@>=6 should deprecate prepublishOnly by renaming it to prepublish.
ljharb, pladaria, FezVrasta, frederickfogerty, LinusU and 6 more