Skip to content

Commit

Permalink
change version number to rc
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Nov 18, 2024
1 parent f1bbf93 commit 7b1d714
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "holochain-launcher-0.3",
"version": "0.301.0",
"version": "0.301.0-rc.0",
"private": true,
"description": "Holochain Launcher (0.3)",
"author": "Holochain Foundation <info@holochain.org> (http://holochain.org)",
Expand Down
5 changes: 3 additions & 2 deletions src/main/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ export function breakingVersion(version: string) {
throw new Error('Version is not valid semver.');
}

if (semver.prerelease(version)) {
return version;
const prerelease = semver.prerelease(version);
if (prerelease) {
return `${semver.major(version)}.${semver.minor(version)}.${semver.patch(version)}-${prerelease[0]}`;
}

const major = semver.major(version);
Expand Down

0 comments on commit 7b1d714

Please sign in to comment.