Skip to content

Commit

Permalink
fix: make sure bun is detected even when yarn.lock file is present (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno authored Oct 16, 2024
1 parent 14a2ad4 commit 2a1c7e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ impl PackageManager {
pub fn resolve() -> Result<Self> {
if fs::metadata("package-lock.json").is_ok() {
return Ok(PackageManager::Npm);
} else if fs::metadata("bun.lockb").is_ok() {
return Ok(PackageManager::Bun);
} else if fs::metadata("yarn.lock").is_ok() {
return Ok(PackageManager::Yarn);
} else if fs::metadata("pnpm-lock.yaml").is_ok() {
return Ok(PackageManager::Pnpm);
} else if fs::metadata("bun.lockb").is_ok() {
return Ok(PackageManager::Bun);
}

let package_manager =
Expand Down

0 comments on commit 2a1c7e7

Please sign in to comment.