Skip to content

Commit

Permalink
feat: enable stable cli input
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeVanti committed Sep 29, 2024
1 parent 7785813 commit 4374581
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/domain/package-reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ export type PackageReference = DomainName | ReferenceWithVersion;
* @param s The string.
*/
function isVersionReference(s: string): s is VersionReference {
return s === "latest" || isZod(s, SemanticVersion) || isZod(s, PackageUrl);
return (
s === "latest" ||
s === "stable" ||
isZod(s, SemanticVersion) ||
isZod(s, PackageUrl)
);
}

/**
Expand Down

0 comments on commit 4374581

Please sign in to comment.