Skip to content

Commit

Permalink
fix(release): allow preid option in release command
Browse files Browse the repository at this point in the history
  • Loading branch information
focusaway committed Dec 11, 2024
1 parent a267063 commit 17b64d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/nx/src/command-line/release/command-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export type ReleaseOptions = NxReleaseArgs &
FirstReleaseArgs & {
specifier?: string;
yes?: boolean;
preid?: VersionOptions['preid'];
skipPublish?: boolean;
};

Expand Down Expand Up @@ -185,6 +186,12 @@ const releaseCommand: CommandModule<NxReleaseArgs, ReleaseOptions> = {
describe:
'Exact version or semver keyword to apply to the selected release group.',
})
.option('preid', {
type: 'string',
describe:
'The optional prerelease identifier to apply to the version. This will only be applied in the case that the specifier argument has been set to `prerelease` OR when conventional commits are enabled, in which case it will modify the resolved specifier from conventional commits to be its prerelease equivalent. E.g. minor -> preminor.',
default: '',
})
.option('yes', {
type: 'boolean',
alias: 'y',
Expand Down

0 comments on commit 17b64d6

Please sign in to comment.