pgsandstrom / package-json-upgrade

MIT License
49 stars 10 forks source link

Support for aliased packages #39

Open dleetr opened 2 years ago

dleetr commented 2 years ago

I recently had a need to alias 2 different versions of the same package like this:

    "snowpack2": "npm:snowpack@2",
    "snowpack3": "npm:snowpack@3",

But as you can see the plugin says dependency not found -

image

Behavior for this is a bit ambiguous I would admit, but it would be nice if the dependency could at least be obtained and listed in the event I don't notice a major version update on something I have aliased. It'd be fine to me if each dependency listed the most recent (that is to say I wouldn't care if it was just duplicated for each alias), or if there was an option to display the highest matching major version for everything but the newest dependency.

christowiz commented 5 months ago

Support for JSR would be great

image