From 70a5a7f4b1565c2ad41f5cbbb0748808b5c560ad Mon Sep 17 00:00:00 2001 From: believer Date: Fri, 10 Nov 2023 14:54:46 +0100 Subject: [PATCH] feat(bun): save exact versions --- src/utils/node.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/node.rs b/src/utils/node.rs index 5fdeb5a..07a94cd 100644 --- a/src/utils/node.rs +++ b/src/utils/node.rs @@ -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| { @@ -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| {