Skip to content

Commit 2460c89

Browse files
authored
fix(core): set yarn berry nodeLinker correctly in migrate command (#23249)
<!-- 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
1 parent a08133f commit 2460c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nx/src/command-line/migrate/command-object.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ function nxCliPath() {
155155
});
156156
// if it's berry ensure we set the node_linker to node-modules
157157
if (packageManager === 'yarn' && pmc.ciInstall.includes('immutable')) {
158-
execSync(pmc.preInstall, {
159-
cwd: 'yarn config set nodeLinker node-modules',
158+
execSync('yarn config set nodeLinker node-modules', {
159+
cwd: tmpDir,
160160
stdio: ['ignore', 'ignore', 'ignore'],
161161
});
162162
}

0 commit comments

Comments
 (0)