-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: upgrade yarn, respect yarn options to not run postinstall #5
base: master
Are you sure you want to change the base?
Conversation
sources/commands/postinstall.ts
Outdated
// Respect the variable `YARN_ENABLE_SCRIPTS`. | ||
// https://github.com/renovatebot/renovate/discussions/17442#discussioncomment-3498940 | ||
if (process.env.YARN_ENABLE_SCRIPTS === "0") { | ||
console.log(`Skipping postinstall because of "YARN_ENABLE_SCRIPTS=0"`); | ||
return; | ||
} |
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.
This is the fix for #3
sources/commands/postinstall.ts
Outdated
// Respect the mode `skip-build`. | ||
// https://github.com/renovatebot/renovate/discussions/17442#discussioncomment-3499080 | ||
if (options?.mode === InstallMode.SkipBuild) { | ||
console.log(`Skipping postinstall because of "--mode=skip-build"`); | ||
return; | ||
} |
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.
This is the fix for #4
@emmenko, thanks for your pull request! Hope this change will be merged eventually. Meanwhile, I'll switch to your fork |
Fixes #3
Fixes #4
Additionally fixes the command to always be executed from the workspace root folder.
Other notable changes:
.yarn/cache
from git