The scripts doc says:
- prepare: Run both BEFORE the package is packed and published, and on local
npm installwithout any arguments (See below). This is run AFTER
prepublish, but BEFORE
- prepublishOnly: Run BEFORE the package is prepared and packed, ONLY on
npm publish. (See below.)
prepare run "BEFORE
prepublishOnly runs “BEFORE the package is prepared”?