From ed7b8ad846573039eead3a25438d65991ddb4d3b Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Thu, 27 Jul 2023 09:32:36 +0200 Subject: [PATCH] fix(core): run pnpm exec with proper command --- 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 896f568efbb07d..3fcb93fb9c43e5 100644 --- a/packages/nx/src/utils/package-manager.ts +++ b/packages/nx/src/utils/package-manager.ts @@ -82,7 +82,7 @@ export function getPackageManagerCommand( }, pnpm: () => { const pnpmVersion = getPackageManagerVersion('pnpm', root); - const useExec = gte(pnpmVersion, '6.13.0'); + const useExec = gte(pnpmVersion, '6.13.0') && lt(pnpmVersion, '7.0.0'); const includeDoubleDashBeforeArgs = lt(pnpmVersion, '7.0.0'); const isPnpmWorkspace = existsSync(join(root, 'pnpm-workspace.yaml'));