From e59ca15b83f88ce80e678db5686494238d182e64 Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Wed, 26 Jul 2023 17:52:36 +0200 Subject: [PATCH] fix(core): shell script invocation should use yarn for berry --- 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', };