Remove yarn (fix #727)
This commit is contained in:
@@ -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))?;
|
||||
|
||||
@@ -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")?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user