Skip to content

Commit

Permalink
Fix invalid pre-release version string
Browse files Browse the repository at this point in the history
It's not consistent, but vscode sometimes gives me errors about the semver for the helix package not being valid, and indeed it seems leading zeroes are not valid semver, so switching to a tag to mark the prerelease
  • Loading branch information
Strackeror committed Aug 23, 2024
1 parent 77882fd commit e908946
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/helix/package.build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { extensionId } from "../../src/utils/constants";

const version = "0.1.0",
preRelease = 1,
preReleaseVersion = version.replace(/\d+$/, "$&" + preRelease.toString().padStart(3, "0"));
preReleaseVersion = `${version}-pre${preRelease}`;

export const pkg = (modules: Builder.ParsedModule[]) => ({

Expand Down
4 changes: 2 additions & 2 deletions extensions/helix/package.json

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

0 comments on commit e908946

Please sign in to comment.