antfu-collective / ni

💡 Use the right package manager
MIT License
6.25k stars 208 forks source link

Support JSR #206

Closed tmg0 closed 6 months ago

tmg0 commented 6 months ago

Clear and concise description of the problem

Maybe support jsr as a agent ?

Suggested solution

Add a field named packageRegistry in package.json ?

And if declared the packageRegistry as jsr, ni will run the command jsr add with right package manager like npx jsr add

Alternative

No response

Additional context

No response

Validations

antfu commented 6 months ago

packageRegistry in package.json

Is this something in the standard? If not I don't think we should invent it.

I am not sure about this feature in general, we the tools we have right now. JSR packages can coexists with NPM packages, and ni is for package clients not registry.

I think for now it's still better to run ni x to install npm packages and jsr add x to install jsr packages.