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.
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