Skip to content

Commit

Permalink
Fix usage with pnpm and --any-branch or --branch (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Jun 19, 2024
1 parent d2c66a8 commit d0c1493
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/package-manager/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ export const pnpmConfig = {
installCommand: ['pnpm', ['install']],
installCommandNoLockfile: ['pnpm', ['install']],
versionCommand: version => ['pnpm', ['version', version]],
// Pnpm config doesn't have `v` as a default tag version prefix, so to get consistent default behavior, use npm.
// By default, pnpm config returns `undefined` instead of `v` for tag-version-prefix, so for consistent default behavior, use npm.
tagVersionPrefixCommand: ['npm', ['config', 'get', 'tag-version-prefix']],
// Disable duplicated pnpm Git checks
publishCommand: arguments_ => ['pnpm', [...arguments_, '--no-git-checks']],
getRegistryCommand: ['pnpm', ['config', 'get', 'registry']],
lockfiles: ['pnpm-lock.yaml'],
};
Expand Down

0 comments on commit d0c1493

Please sign in to comment.