Skip to content

Commit

Permalink
fix(core): set yarn berry nodeLinker correctly in migrate command (#2…
Browse files Browse the repository at this point in the history
…3249)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #23222

(cherry picked from commit 2460c89)
  • Loading branch information
leosvelperez authored and FrozenPandaz committed May 9, 2024
1 parent fe46c53 commit 534b24b
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 534b24b

Please sign in to comment.