-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix(rebuild): don't run lifecycle scripts twice on linked deps #4529
Conversation
While we're looking at lifecycle scripts + linked deps we may want to see if #3918 is related enough to address in the same PR |
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.
it would be nice to have a test that throws if a lifecycle script runs a second time, that can now pass with this change 😁
|
||
// links should also run prepare scripts and only link bins after that | ||
if (type === 'links') { | ||
// links should run prepare scripts and only link bins after that |
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 comment sounds off now 🤔 maybe just remove it
I'm gonna need help w/ that one and planned on pairing w/ someone for this. |
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.
Let's land this in time for today's release and backlog an issue to work on a test later on.
ref: npm/statusboard#439
There is suspicion that this PR caused lifecycle scripts in workspaces to stop working in 8.5.4. Bug is #4552 |
Fixes #2905