Skip to content

Commit

Permalink
chore(version): update semver, simplify code
Browse files Browse the repository at this point in the history
fixes #27
  • Loading branch information
louis-bompart committed May 20, 2022
1 parent 47ede06 commit e13cd0b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -60,7 +60,7 @@
"conventional-commits-parser": "^3.2.4",
"debug": "^4.3.3",
"git-raw-commits": "^2.0.11",
"semver": "^7.3.5",
"semver": "^7.3.7",
"tempfile": "^4.0.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/version/getNextVersion.ts
Expand Up @@ -13,9 +13,9 @@ function getNextVersion(version: SemVer, bumpInfo: BumpInfoWithType): string;

function getNextVersion(version: SemVer, bumpInfo: BumpInfo) {
if ("level" in bumpInfo) {
return inc(version.version, VERSION_LEVEL[bumpInfo.level]);
return inc(version, VERSION_LEVEL[bumpInfo.level]);
} else {
return inc(version.version, bumpInfo.type, bumpInfo.preid);
return inc(version, bumpInfo.type, bumpInfo.preid);
}
}

Expand Down

0 comments on commit e13cd0b

Please sign in to comment.