Skip to content

Commit

Permalink
feat(bun): save exact versions
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Nov 10, 2023
1 parent c10c881 commit 70a5a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn install(pkgs: &[String]) {
NodeInstaller::Npm => vec!["install", "--save-exact"],
NodeInstaller::Yarn => vec!["add", "--exact"],
NodeInstaller::Pnpm => vec!["add", "--save-exact"],
NodeInstaller::Bun => vec!["add"],
NodeInstaller::Bun => vec!["add", "--exact"],
};

pkgs.iter().for_each(|p| {
Expand All @@ -60,7 +60,7 @@ pub fn install_dev(pkgs: &[String]) {
NodeInstaller::Npm => vec!["install", "--save-exact", "--save-dev"],
NodeInstaller::Yarn => vec!["add", "--exact", "--dev"],
NodeInstaller::Pnpm => vec!["add", "--save-exact", "--save-dev"],
NodeInstaller::Bun => vec!["add", "--development"],
NodeInstaller::Bun => vec!["add", "--exact", "--dev"],
};

pkgs.iter().for_each(|p| {
Expand Down

0 comments on commit 70a5a7f

Please sign in to comment.