From b836ee1be768c835a0bd707ba92268d3ee94db67 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sat, 11 Mar 2023 17:58:52 -0600 Subject: [PATCH] chore: use rtx-nodejs instead of asdf-nodejs Fixes #287 --- scripts/update-shorthand-repo.sh | 5 +++-- src/default_shorthands.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/update-shorthand-repo.sh b/scripts/update-shorthand-repo.sh index e7320a420..6121793ca 100755 --- a/scripts/update-shorthand-repo.sh +++ b/scripts/update-shorthand-repo.sh @@ -6,7 +6,7 @@ git clone --depth 1 https://github.com/asdf-vm/asdf-plugins rm -f src/default_shorthands.rs num_plugins=$(find asdf-plugins/plugins/* | wc -l | tr -d ' ') -num_plugins=$((num_plugins + 4)) # + for custom aliases (node, tiny, etc) +num_plugins=$((num_plugins + 5)) # + for custom aliases (node, tiny, etc) cat >src/default_shorthands.rs <>src/default_shorthands.rs <> = #[rustfmt::skip] #[cfg_attr(coverage_nightly, no_coverage)] -const DEFAULT_SHORTHAND_LIST: [(&str, &str); 618] = [ +const DEFAULT_SHORTHAND_LIST: [(&str, &str); 619] = [ // asdf original shorthands from https://github.com/asdf-vm/asdf-plugins ("1password-cli", "https://github.com/NeoHsu/asdf-1password-cli.git"), ("R", "https://github.com/asdf-community/asdf-r.git"), @@ -626,7 +626,8 @@ const DEFAULT_SHORTHAND_LIST: [(&str, &str); 618] = [ ("zprint", "https://github.com/carlduevel/asdf-zprint.git"), // rtx custom shorthands ("go", "https://github.com/kennyp/asdf-golang.git"), - ("node", "https://github.com/asdf-vm/asdf-nodejs.git"), + ("node", "https://github.com/jdxcode/rtx-nodejs.git"), + ("nodejs", "https://github.com/jdxcode/rtx-nodejs.git"), ("python", "https://github.com/jdxcode/rtx-python.git"), ("tiny", "https://github.com/jdxcode/rtx-tiny.git"), ];