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

npx jsr add installs to the parent directory #30

Closed matthewp closed 9 months ago

matthewp commented 9 months ago

I published a package as a test, then created a new test directory (all node.js based):

mkdir test-proj
cd test-proj
npm init -y

Then tried to install my project:

npx jsr add @spooky/dom-fns

Which added them to the parent directory's package.json and the parent directory's node_modules folder. I attempted to create an empty node_modules in the cwd but that did not change things.

tldr; I think jsr add has issues with empty projects.