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

fix: wrong project folder detection #57

Closed marvinhagemeister closed 8 months ago

marvinhagemeister commented 8 months ago

This PR fixes an issue where we didn't detect the project directory properly when jsr was executing inside a subfolder of an existing project. In our upwards traversal function we checked for the lockfile first and bailed out if we found one. This means the code that sets the project directory was never executed if a lockfile had already been found.

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