-
Notifications
You must be signed in to change notification settings - Fork 147
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 RFC for script run hooks #70
Conversation
- `shrinkwrap` | ||
- before `shrinkwrap` | ||
- confusing, but runs *before* the shrinkwrap is created | ||
- I'm not sure `yarn` needs to include this, given that `shrinkwrap` is not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we don't need shrinkwraps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the shrinkwrap scripts also run when creating the new package-lock.json
, so yarn should also run if when creating the yarn.lock
file, for a closer 1-to-1 match
Great work, @deecewan! |
Let me summon a few folks who have more context |
My opinion - this looks fine, we should just match npm@5 and move forward. |
AFAIK, from the docs and from testing, I've enumerated how everything works. I might make a couple of test scripts for |
Great job, @deecewan! |
yeah, keen! I'll do what I can 👍 |
FYI a programmatic comparison of which hooks run and in what order, along with the toold can now be found at https://github.com/andreineculau/package-json-scripts |
@deecewan, any chance you've had a crack at this? |
@bestander I'm both limited by time and incentive as I do not use yarn in my routine. I've done the package-json-scripts investigation because we intend to have git dependencies, and I've seen inconsistencies. My first npm alternative to try out is pnpm actually, so trying out and even committing to yarn is too much in the future. What I can help out with, no doubt, is doing one final manual testing of whatever new behaviour lands or is about to land in yarn, if nobody wants to run https://github.com/andreineculau/package-json-scripts themselves. |
@bestander i started taking a look at this. from memory, i think there were only 1 or 2 changes. i'll take another look after work tonight. |
@deecewan, awesome, thank you very much. |
This was spurred by yarnpkg/yarn#3209 (comment) to try and normalise the hooks that run and when.