From bad933c028d54e1190c226def5a2b50e13a3c70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Wed, 8 May 2024 19:00:32 +0200 Subject: [PATCH] fix(core): set yarn berry nodeLinker correctly in migrate command --- packages/nx/src/command-line/migrate/command-object.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nx/src/command-line/migrate/command-object.ts b/packages/nx/src/command-line/migrate/command-object.ts index 9b033def1b24d..785771c516eec 100644 --- a/packages/nx/src/command-line/migrate/command-object.ts +++ b/packages/nx/src/command-line/migrate/command-object.ts @@ -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'], }); }