jsr-io / jsr-npm

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

add `jsr setup` subcommand for setting up `.npmrc` (, `bunfig.toml`, or `.yarnrc.yml` ) #88

Open kt3k opened 5 months ago

kt3k commented 5 months ago

Currently jsr cli sets up these config files at the beginning of jsr install <pkg> subcommand, but it would be useful if jsr cli also provides a subcommand which only does that setup independently.

The use case of this is that when an npm package author use jsr package as its dependency, then they need to instruct its users to add .npmrc (or similar) settings to their projects. jsr setup command can be used for supporting that setup.


63 might be related issue, but #11 implements a subcommand which generates an empty project with jsr set up.