jsr-io / jsr-npm

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

feat: support -g, --global install arg #53

Open marvinhagemeister opened 4 months ago

marvinhagemeister commented 4 months ago

This PR adds support for installing packages globally via jsr i -g <package>. This allows jsr to self update via jsr i -g jsr for example.

Not sure how to write tests for this as the other package managers don't seem to have a way to temporarily overwrite the global install location.

Fixes https://github.com/jsr-io/jsr-npm/issues/46