Skip to content

Commit 8559023

Browse files
committed
chore: remove dead npm install -g calls
1 parent dbbd739 commit 8559023

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

crates/vite_install/src/commands/update.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,6 @@ impl PackageManager {
4848
let envs = HashMap::from([("PATH".to_string(), format_path_env(self.get_bin_prefix()))]);
4949
let mut args: Vec<String> = Vec::new();
5050

51-
// global packages should use npm cli only
52-
if options.global {
53-
bin_name = "npm".into();
54-
args.push("update".into());
55-
args.push("--global".into());
56-
if let Some(pass_through_args) = options.pass_through_args {
57-
args.extend_from_slice(pass_through_args);
58-
}
59-
args.extend_from_slice(options.packages);
60-
61-
return ResolveCommandResult { bin_path: bin_name, args, envs };
62-
}
63-
6451
match self.client {
6552
PackageManagerType::Pnpm => {
6653
bin_name = "pnpm".into();

0 commit comments

Comments
 (0)