We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you want to request a feature or report a bug?
Should be a bug.
What is the current behavior?
propublish script is runned after I use yarn
propublish
This is scripts part of my package.json:
package.json
"scripts": { "postinstall": "webpack", "prepublish": "webpack --config webpack.prod.js" },
If the current behavior is a bug, please provide the steps to reproduce.
Run yarn command
yarn
What is the expected behavior?
It should run postinstall script.
Please mention your node.js, yarn and operating system version.
node v6.0 MacOs yarn 0.15.1
The text was updated successfully, but these errors were encountered:
Running prepublish is correct in terms of npm compatibility (see https://github.com/yarnpkg/yarn/blob/master/src/cli/commands/install.js#L736), but you're right, postinstall should also be run immediately before prepublish.
prepublish
EDIT: Looking at npm install at https://github.com/npm/npm/blob/8fa75cd0313e3cea8459f89b79208461e54b033b/lib/install.js#L551, it looks like we should be executing the following "magic" scripts in this order after a successful install for full compatibility:
npm install
build
install
postinstall
test
I'm happy to pick this up, but how much parity do we want to implement with yarn? Should we add 1-3 and wrap prepublish in an if dev?
if dev
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Do you want to request a feature or report a bug?
Should be a bug.
What is the current behavior?
propublish
script is runned after I use yarnThis is scripts part of my
package.json
:If the current behavior is a bug, please provide the steps to reproduce.
Run
yarn
commandWhat is the expected behavior?
It should run postinstall script.
Please mention your node.js, yarn and operating system version.
node v6.0
MacOs
yarn 0.15.1
The text was updated successfully, but these errors were encountered: