From 4f2ea4dd8e622cf1aad9576157319499a0a63e48 Mon Sep 17 00:00:00 2001 From: Zaran Lalvani Date: Mon, 29 Apr 2024 20:47:58 -0400 Subject: [PATCH] fix: allow specifying non major versions explicitly --- apps/cli/src/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/cli/src/index.tsx b/apps/cli/src/index.tsx index 1ee48c4..5ba8322 100644 --- a/apps/cli/src/index.tsx +++ b/apps/cli/src/index.tsx @@ -87,7 +87,9 @@ if (!pkg) { pkg = available[choice]!.packageName; version = available[choice]!.newVersion; -} else { +} + +if (!version) { const choice = available.find((p) => p.packageName === pkg); if (!choice) { @@ -96,10 +98,7 @@ if (!pkg) { ); process.exit(1); } - - if (!version) { - version = choice.newVersion; - } + version = choice.newVersion; } const bumpgen = makeBumpgen({