From aa557a029c0958b8d789a3b8edf1e44ced0cf48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Jona=C5=A1?= Date: Wed, 26 Jul 2023 22:42:11 +0200 Subject: [PATCH] fix(core): shell script invocation should use yarn for berry (#18326) --- packages/nx/src/utils/package-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/utils/package-manager.ts b/packages/nx/src/utils/package-manager.ts index 20eefb184b6af..896f568efbb07 100644 --- a/packages/nx/src/utils/package-manager.ts +++ b/packages/nx/src/utils/package-manager.ts @@ -75,7 +75,7 @@ export function getPackageManagerCommand( add: useBerry ? 'yarn add' : 'yarn add -W', addDev: useBerry ? 'yarn add -D' : 'yarn add -D -W', rm: 'yarn remove', - exec: useBerry ? 'yarn exec' : 'yarn', + exec: 'yarn', run: (script: string, args: string) => `yarn ${script} ${args}`, list: useBerry ? 'yarn info --name-only' : 'yarn list', };