Skip to content

Commit

Permalink
fix: skip jsr packages if there is no valid version
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Apr 19, 2024
1 parent 73692c0 commit 70e580c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dependency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ async function _resolveLatestVersion(
([version, { yanked }]) => !yanked && !isPreRelease(version),
);
const semvers = Object.keys(candidates).map(SemVer.parse);
if (!semvers.length) {
break;
}
const latest = SemVer.format(semvers.sort(SemVer.compare).reverse()[0]);
if (isPreRelease(latest)) {
break;
Expand Down

0 comments on commit 70e580c

Please sign in to comment.