-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(core): ensure preinstall is only run once on repo #18671
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -42,7 +43,9 @@ export function installPackagesTask( | |||
cwd: join(tree.root, cwd), | |||
stdio: process.env.NX_GENERATE_QUIET === 'true' ? 'ignore' : 'inherit', | |||
}; | |||
if (pmc.preInstall) { | |||
// only run preinstall if install hasn't been run yet | |||
// this only happens during CNW when preset is adding its dependencies |
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.
We can move this step out of devkit and into the new
generator.
4cbe93b
to
e7e494d
Compare
e7e494d
to
7434a2a
Compare
(cherry picked from commit adb39c4)
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The preinstall step runs every time we call
installPackagesTask
(on every generator and migration that added packages)Expected Behavior
The preinstall step should only run once, during the CNW to ensure install is run with the proper pm version.
Related Issue(s)
Fixes #