You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
Currently when you run yarn add <package-name> the prepublish hook is also run. This is not expected behavior as npm install <package-name> does not run the prepublish hook.
If the current behavior is a bug, please provide the steps to reproduce. yarn add <any package>
What is the expected behavior? yarn add <package-name> should not run prepublish. (yarn install should continue to run prepublish)
Please mention your node.js, yarn and operating system version.
Node 7.5
Yarn 0.23.2
Mac OSX 10.12.2
The text was updated successfully, but these errors were encountered:
npm install does run the publish hook. This is why there is prepublishOnly hook.
IMPORTANT: As of npm@5, prepublish will only be run for npm publish. This will make its behavior identical to prepublishOnly, so npm@6 or later may drop support for the use of prepublishOnly, and then maybe we can all forget this embarrassing thing ever happened.
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
Currently when you run
yarn add <package-name>
the prepublish hook is also run. This is not expected behavior asnpm install <package-name>
does not run the prepublish hook.If the current behavior is a bug, please provide the steps to reproduce.
yarn add <any package>
What is the expected behavior?
yarn add <package-name>
should not runprepublish
. (yarn install
should continue to runprepublish
)Please mention your node.js, yarn and operating system version.
Node 7.5
Yarn 0.23.2
Mac OSX 10.12.2
The text was updated successfully, but these errors were encountered: