Skip to content

Commit

Permalink
chore: use bun outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Aug 25, 2024
1 parent 7c82cd3 commit 1720411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/managers/npm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ pub fn get_task_command_map() -> HashMap<String, String> {
task_command_map.insert("clean".to_string(), format!("{} run clean", package_manager));
}
if package_manager == "bun" {
task_command_map.insert("deps".to_string(), format!("npm list"));
task_command_map.insert("deps".to_string(), format!("bun pm ls"));
if which::which("npm-check").is_ok() {
task_command_map.insert("outdated".to_string(), "npm-check -u".to_string());
task_command_map.insert("outdated".to_string(), "bun outdated".to_string());
} else {
task_command_map.insert("outdated".to_string(), format!("npm outdated"));
}
Expand Down

0 comments on commit 1720411

Please sign in to comment.