jsr-io / jsr-npm

A cli tool to make installing packages form jsr.io in node easy
https://npmjs.com/package/jsr
MIT License
100 stars 12 forks source link

fix: "show" cmd error for packages without stable versions #83

Closed marvinhagemeister closed 5 months ago

marvinhagemeister commented 5 months ago

This PR fixes an error that was thrown when running the jsr show <pkg> command on a package which has no stable versions. In those cases latest is not set. We didn't handle that case.

Error:

$ npx jsr show @fresh/update

TypeError: Cannot read properties of undefined (reading 'dist')
# ...snip