antfu-collective / ni

💡 Use the right package manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support JSR

tmg0 opened this issue · comments

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

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.