The documentation on npm scripts has a contradiction

(Joe Pea) #1

The scripts doc says:

  • prepare: Run both BEFORE the package is packed and published, and on local npm install without any arguments (See below). This is run AFTER prepublish , but BEFORE prepublishOnly .
  • prepublishOnly: Run BEFORE the package is prepared and packed, ONLY on npm publish . (See below.)

How can prepare run "BEFORE prepublishOnly", while prepublishOnly runs “BEFORE the package is prepared”?

0 Likes

(Kat Marchán) #2

Moved to #support:docs-needed, where we tend to put stuff when the docs need some kind of update. Thanks for pointing this out!

0 Likes

(system) closed #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

0 Likes