nuxtrdev / nuxtr-vscode

An extension offering commands and tools to make your experience with Nuxt more pleasant.
https://marketplace.visualstudio.com/items?itemName=Nuxtr.nuxtr-vscode
338 stars 13 forks source link

fix: fetch pkg versions from npm registry api #64

Closed Blaquewithaq closed 1 year ago

Blaquewithaq commented 1 year ago

๐Ÿ”— Linked issue / Discussion

63

โ“ Type of change

๐Ÿ“š Description

Rather than relying on the exec("npm view ${package} versions") command, this approach leverages the existing ofetch library to retrieve package versions directly from the npm registry via their API.

This enables Bun users to install specific package versions as originally intended, without being dependent on the presence of npm in the environment.

๐Ÿ“ Checklist

adhamfarrag commented 1 year ago

I'll close it for now until we pick it up again.