Do you want to request a feature or report a bug?
Bug
What is the current behavior?
$ npm publish --tag next
> [email protected] prepublishOnly .
> echo prepublishOnly
prepublishOnly
> [email protected] prepack .
> echo prepack
prepack
> [email protected] postpack .
> echo postpack
postpack
+ [email protected]
$ yarn publish --tag next
yarn publish v1.6.0
[1/4] Bumping version...
info Current version: 6.2.5-3
question New version:
info Proceeding with current version: 6.2.5-3
[2/4] Logging in...
[3/4] Publishing...
$ echo prepublishOnly
prepublishOnly
success Published.
[4/4] Revoking token...
info Not revoking login token, specified via config file.
✨ Done in 6.99s.
If the current behavior is a bug, please provide the steps to reproduce.
Set scripts.prepack in package.json, called during yarn pack but not yarn publish.
What is the expected behavior?
Should call the scripts like npm does.
Please mention your node.js, yarn and operating system version.
Node: 8.11.1
Yarn: 1.6.0
OS: MacOS High Sierra
Made a PR. If anyone wants to test it out I would appreciate it.
Most helpful comment
Made a PR. If anyone wants to test it out I would appreciate it.