Skip to content

Commit

Permalink
chore: add bun.lock detection for bun
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Sep 26, 2024
1 parent 24e4d60 commit 3ea07e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ pub fn get_npm_command(package_json: &PackageJson) -> &'static str {
"pnpm"
} else if package_manager.starts_with("bun") {
"bun"
}else {
} else {
"npm"
};
} else {
if let Ok(dir) = std::env::current_dir() {
if dir.join("bun.lockb").exists() {
if dir.join("bun.lockb").exists() || dir.join("bun.lock").exists() {
return "bun";
} else if dir.join("pnpm-lock.yaml").exists() {
return "pnpm";
Expand Down

0 comments on commit 3ea07e3

Please sign in to comment.