Skip to content

Commit

Permalink
fix(core): run pnpm exec with proper command
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Jul 27, 2023
1 parent 0ae941b commit cec3b46
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 157 deletions.
2 changes: 1 addition & 1 deletion packages/nx/src/utils/package-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down
Loading

0 comments on commit cec3b46

Please sign in to comment.