Skip to content

Commit

Permalink
fix(semver): allow overriding any preset by passing its name
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Dec 22, 2023
1 parent 9d1cefc commit c46cf5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/semver/src/executors/version/utils/try-bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export function _semverBump({
tagPrefix,
...(typeof preset === 'string' ? { preset } : {}),
...(typeof preset === 'object'
? { preset: 'conventionalcommits', config: preset }
? { preset: preset.name ?? 'conventionalcommits', config: preset }
: {}),
});
const { releaseType } = recommended;
Expand Down

0 comments on commit c46cf5c

Please sign in to comment.