Skip to content

Commit d0c1493

Browse files
authored
Fix usage with pnpm and --any-branch or --branch (#745)
1 parent d2c66a8 commit d0c1493

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/package-manager/configs.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ export const pnpmConfig = {
1717
installCommand: ['pnpm', ['install']],
1818
installCommandNoLockfile: ['pnpm', ['install']],
1919
versionCommand: version => ['pnpm', ['version', version]],
20-
// Pnpm config doesn't have `v` as a default tag version prefix, so to get consistent default behavior, use npm.
20+
// By default, pnpm config returns `undefined` instead of `v` for tag-version-prefix, so for consistent default behavior, use npm.
2121
tagVersionPrefixCommand: ['npm', ['config', 'get', 'tag-version-prefix']],
22+
// Disable duplicated pnpm Git checks
23+
publishCommand: arguments_ => ['pnpm', [...arguments_, '--no-git-checks']],
2224
getRegistryCommand: ['pnpm', ['config', 'get', 'registry']],
2325
lockfiles: ['pnpm-lock.yaml'],
2426
};

0 commit comments

Comments
 (0)