From 38ca03cc380d70a5019367011ac9545567588d9d Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Tue, 6 Jul 2021 09:36:50 +0300 Subject: [PATCH] Remove yarn (fix #727) --- src/main.rs | 1 - src/steps/node.rs | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/src/main.rs b/src/main.rs index 240d74b5..0c0e546e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -298,7 +298,6 @@ 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::Node, "yarn", || node::yarn_global_update(run_type))?; runner.execute(Step::Node, "pnpm", || node::pnpm_global_update(run_type))?; runner.execute(Step::Deno, "deno", || node::deno_upgrade(&ctx))?; runner.execute(Step::Composer, "composer", || generic::run_composer_update(&ctx))?; diff --git a/src/steps/node.rs b/src/steps/node.rs index 545665c4..3f968cf5 100644 --- a/src/steps/node.rs +++ b/src/steps/node.rs @@ -87,18 +87,6 @@ pub fn pnpm_global_update(run_type: RunType) -> Result<()> { run_type.execute(&pnpm).args(&["update", "-g"]).check_run() } -pub fn yarn_global_update(run_type: RunType) -> Result<()> { - let yarn = require("yarn")?; - - let output = Command::new(&yarn).arg("--version").string_output()?; - if output.contains("Hadoop") { - return Err(SkipStep(String::from("Installed yarn is Hadoop's yarn")).into()); - } - - print_separator("Yarn"); - run_type.execute(&yarn).args(&["global", "upgrade", "-s"]).check_run() -} - pub fn deno_upgrade(ctx: &ExecutionContext) -> Result<()> { let deno = require("deno")?;