Skip to content

Commit

Permalink
detect bun.lock text lockfile (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
djobbo authored Jan 6, 2025
1 parent c42c9e9 commit 38c42fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl NodeProvider {
pkg_manager = "pnpm";
} else if app.includes_file("yarn.lock") {
pkg_manager = "yarn";
} else if app.includes_file("bun.lockb") {
} else if app.includes_file("bun.lockb") || app.includes_file("bun.lock") {
pkg_manager = "bun";
}
pkg_manager.to_string()
Expand Down Expand Up @@ -397,7 +397,7 @@ impl NodeProvider {
}
} else if app.includes_file("package-lock.json") {
install_cmd = "npm ci".to_string();
} else if app.includes_file("bun.lockb") {
} else if app.includes_file("bun.lockb") || app.includes_file("bun.lock") {
install_cmd = "bun i --no-save".to_string();
}

Expand Down

0 comments on commit 38c42fa

Please sign in to comment.