Skip to content

Commit

Permalink
fix: allow specifying non major versions explicitly (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlalvani authored Apr 30, 2024
1 parent 46e81f4 commit a2c4cec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bumpgen",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {
"build": "tsup src/index.tsx --format esm",
"dev": "tsup src/index.tsx --format esm --watch",
Expand Down
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 a2c4cec

Please sign in to comment.