From 06c4fd82426ce423730ff139fe62802a1062b8be Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 16 Jun 2022 00:30:01 +0800 Subject: [PATCH] fix: bring back preminor and premajor --- src/get-new-version.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/get-new-version.ts b/src/get-new-version.ts index 6f3ce6e..ac1c29c 100644 --- a/src/get-new-version.ts +++ b/src/get-new-version.ts @@ -97,7 +97,9 @@ async function promptForNewVersion(operation: Operation): Promise { { value: 'minor', title: `${'minor'.padStart(PADDING, ' ')} ${bold(next.minor)}` }, { value: 'patch', title: `${'patch'.padStart(PADDING, ' ')} ${bold(next.patch)}` }, { value: 'next', title: `${'next'.padStart(PADDING, ' ')} ${bold(next.next)}` }, - { value: 'prerelease', title: `${'pre-release'.padStart(PADDING, ' ')} ${bold(next.prerelease)}` }, + { value: 'prepatch', title: `${'pre-patch'.padStart(PADDING, ' ')} ${bold(next.prepatch)}` }, + { value: 'preminor', title: `${'pre-minor'.padStart(PADDING, ' ')} ${bold(next.preminor)}` }, + { value: 'premajor', title: `${'pre-major'.padStart(PADDING, ' ')} ${bold(next.premajor)}` }, { value: 'none', title: `${'as-is'.padStart(PADDING, ' ')} ${bold(oldVersion)}` }, { value: 'custom', title: 'custom ...'.padStart(PADDING + 4, ' ') }, ],