-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
Add postupgrade hook after yarn upgrade is run #8498
Comments
The same should be applied for |
Closing as fixed in v2 where the |
@merceyz could we get the fix to v1 as well? A lot of repositories are still unable to move to v2 so I wonder if such issues should really be just closed? |
* docs: postinstall runs for any change As per yarnpkg/yarn#8498 (comment) * Wording tweak * Update lifecycle-scripts.md Co-authored-by: Maël Nison <nison.mael@gmail.com>
* docs: postinstall runs for any change As per yarnpkg/yarn#8498 (comment) * Wording tweak * Update lifecycle-scripts.md Co-authored-by: Maël Nison <nison.mael@gmail.com>
Bug Description
Sorry if I am not following procedure, was looking at this issue
#2878
and saw a note that if the issue still exists to create a new ticket.
After running
yarn upgrade
, my postinstall script is not run.Command
yarn upgrade
What is the current behavior?
yarn upgrade
runs without trigger the postinstall script after it runsSteps to Reproduce
Add the below script into package.json
Execute yarn upgrade.
Either behavior of having the postinstall script run after
yarn upgrade
or if a postupgrade hook was added that I could use to run my script would be desirable.Environment
Node Version: 14.6.0
Yarn v1 Version: v1.22.4
OS and version: MacOS Catalina 10.15.7
The text was updated successfully, but these errors were encountered: