Skip to content

Commit

Permalink
fix(core): set yarn berry nodeLinker correctly in migrate command
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed May 8, 2024
1 parent 8363ba4 commit bad933c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nx/src/command-line/migrate/command-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ function nxCliPath() {
});
// if it's berry ensure we set the node_linker to node-modules
if (packageManager === 'yarn' && pmc.ciInstall.includes('immutable')) {
execSync(pmc.preInstall, {
cwd: 'yarn config set nodeLinker node-modules',
execSync('yarn config set nodeLinker node-modules', {
cwd: tmpDir,
stdio: ['ignore', 'ignore', 'ignore'],
});
}
Expand Down

0 comments on commit bad933c

Please sign in to comment.