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

findProjectDir: need to prioritize `bun.lockb` over `yarn.lock` #33

Closed azu closed 5 months ago

azu commented 5 months ago

bun can save both "bun.lockb" and "yarn.lock". It is said that this function is used to check the diff when updating the dependency.

Some users use this function to save both "bun.lockb" and "yarn.lock".

In the current implementation, prioritize yarn.lock over bun.lockd. This will determine the package manager as a yarn even if you are using bun.

https://github.com/jsr-io/jsr-npm/blob/37c857353b14e4f27da2c1bb65a1b752f084e1ab/src/utils.ts#L76-L130

Related