[BUG] Undocumented (?) change in prepublishOnly/prepare behavior in v7 #2668
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 7.x
work is associated with a specific npm 7 release
Current Behavior:
If there are both
prepare
andprepublishOnly
scripts, thennpm publish
runs them in a different order in v7 than it did in v6.Expected Behavior:
v7 should run these in the same order as v6, or this difference should be documented somewhere.
Steps To Reproduce:
package.json
containing:npm publish
(aborting out of 2FA prompt, etc.)cat scripts.log
On [email protected], this file contains:
On [email protected], this file contains:
Is this an intended change or is it a bug? I didn't see anything in the 7.0.0 changelog about this, nor did I see any relevant differences between https://docs.npmjs.com/cli/v6/using-npm/scripts and https://docs.npmjs.com/cli/v7/using-npm/scripts.
Environment:
The text was updated successfully, but these errors were encountered: