Skip to content

Commit 770418f

Browse files
authoredMar 24, 2024··
Use npm for tagging versions when pnpm is the chosen package manager (#739)
1 parent da18f86 commit 770418f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎source/package-manager/configs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const pnpmConfig = {
1717
installCommand: ['pnpm', ['install']],
1818
installCommandNoLockfile: ['pnpm', ['install']],
1919
versionCommand: version => ['pnpm', ['version', version]],
20-
tagVersionPrefixCommand: ['pnpm', ['config', 'get', 'tag-version-prefix']],
20+
// Pnpm config doesn't have `v` as a default tag version prefix, so to get consistent default behavior, use npm.
21+
tagVersionPrefixCommand: ['npm', ['config', 'get', 'tag-version-prefix']],
2122
getRegistryCommand: ['pnpm', ['config', 'get', 'registry']],
2223
lockfiles: ['pnpm-lock.yaml'],
2324
};

0 commit comments

Comments
 (0)
Please sign in to comment.