Skip to content

Commit

Permalink
fix: allow specifying non major versions explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
zlalvani committed Apr 30, 2024
1 parent 022e4ec commit 4f2ea4d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/cli/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -96,10 +98,7 @@ if (!pkg) {
);
process.exit(1);
}

if (!version) {
version = choice.newVersion;
}
version = choice.newVersion;
}

const bumpgen = makeBumpgen({
Expand Down

0 comments on commit 4f2ea4d

Please sign in to comment.