Skip to content

Commit 1a40c15

Browse files
committed
chore: update scripts
1 parent 2813c2d commit 1a40c15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/lib/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./glob";
2-
export * from "./version";
2+
export * from "./semver";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export const isReleaseVersion = (s: string) => /^\d+\.\d+\.\d+$/.test(s);
1+
export const isStableVersion = (s: string) => /^\d+\.\d+\.\d+$/.test(s);
22

33
export const isBetaVersion = (s: string) => /^\d+\.\d+\.\d+-beta\.\d+$/.test(s);
44

55
export const isNextVersion = (s: string) => /^\d+\.\d+\.\d+-next\.\d+$/.test(s);
66

7-
export const isVersion = (s: string) => isNextVersion(s) || isBetaVersion(s) || isReleaseVersion(s);
7+
export const isVersion = (s: string) => isNextVersion(s) || isBetaVersion(s) || isStableVersion(s);

0 commit comments

Comments
 (0)