Skip to content

Commit

Permalink
Use npm for tagging versions when pnpm is the chosen package manager (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal authored Mar 24, 2024
1 parent da18f86 commit 770418f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/package-manager/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const pnpmConfig = {
installCommand: ['pnpm', ['install']],
installCommandNoLockfile: ['pnpm', ['install']],
versionCommand: version => ['pnpm', ['version', version]],
tagVersionPrefixCommand: ['pnpm', ['config', 'get', 'tag-version-prefix']],
// Pnpm config doesn't have `v` as a default tag version prefix, so to get consistent default behavior, use npm.
tagVersionPrefixCommand: ['npm', ['config', 'get', 'tag-version-prefix']],
getRegistryCommand: ['pnpm', ['config', 'get', 'registry']],
lockfiles: ['pnpm-lock.yaml'],
};
Expand Down

0 comments on commit 770418f

Please # to comment.