♻️ Node_utils -> fish

This commit is contained in:
Marley Rae 2024-01-29 17:26:52 -08:00
parent b87524c063
commit 308432ccbb
2 changed files with 11 additions and 15 deletions

11
node/node_utils.fish Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
source "$DOT/script/utils.fish"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
function npm_install -a $msg $pkg
execute \
"source $DOT/node/path.config.fish && npm install --global --silent $pkg" \
"$msg"
end

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# vim:set ft=bash:
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& source "../script/utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
npm_install()
{
local -r MSG="$1"
local -r PKG="$2"
execute ". $DOT/node/path.zsh && npm install --global --silent $PKG" "$MSG"
}