Support sudo with pnpm (fix #759) (#772)

* Support sudo with pnpm

* Clippy

* format

* Clippy

* Clippy
This commit is contained in:
Roey Darwish Dror
2021-10-25 22:27:35 +03:00
committed by GitHub
parent fb18af12ac
commit 58491c4f8a
2 changed files with 47 additions and 26 deletions

View File

@@ -308,7 +308,7 @@ fn run() -> Result<()> {
runner.execute(Step::Vim, "Neovim", || vim::upgrade_neovim(&base_dirs, &ctx))?;
runner.execute(Step::Vim, "voom", || vim::run_voom(&base_dirs, run_type))?;
runner.execute(Step::Node, "npm", || node::run_npm_upgrade(&ctx))?;
runner.execute(Step::Pnpm, "pnpm", || node::pnpm_global_update(run_type))?;
runner.execute(Step::Pnpm, "pnpm", || node::pnpm_global_update(&ctx))?;
runner.execute(Step::Deno, "deno", || node::deno_upgrade(&ctx))?;
runner.execute(Step::Composer, "composer", || generic::run_composer_update(&ctx))?;
runner.execute(Step::Krew, "krew", || generic::run_krew_upgrade(run_type))?;