jsr-io / jsr-npm

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

feat: add yarn v2+ support #39

Closed redabacha closed 5 months ago

redabacha commented 5 months ago

resolves #32

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.

marvinhagemeister commented 5 months ago

CI failure is unrelated to the changes in this PR. Not sure why it's different on windows yet.

redabacha commented 5 months ago

CI failure is unrelated to the changes in this PR. Not sure why it's different on windows yet.

maybe not actually, it's resolving @std/encoding@npm:@jsr/std__encoding@^0.218.2 to @std/encoding@npm:@jsr/std__encoding@0.218.2 on windows for the yarn berry test. i think it might be a powershell problem?

redabacha commented 5 months ago

i added a potential fix to wrap the command arguments in double quotes on windows (works for both powershell and cmd) and single quotes elsewhere.