feat: install, logging improvements
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
||||
|
||||
nvm_version="0.39.7"
|
||||
if ! command -v "nvm" &>/dev/null; then
|
||||
nvm_version="0.40.3"
|
||||
if ! command -v nvm &>/dev/null; then
|
||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v${nvm_version}/install.sh)"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
||||
fi
|
||||
@@ -25,9 +25,9 @@ echo "npm $(npm --version)"
|
||||
|
||||
npm_dependencies=(
|
||||
"firebase-tools"
|
||||
"neovim"
|
||||
"typescript-language-server"
|
||||
"typescript"
|
||||
# "neovim"
|
||||
# "typescript-language-server"
|
||||
# "typescript"
|
||||
)
|
||||
|
||||
npm_dependencies=($(comm -13 <(printf "%s\n" "${npm_dependencies[@]}" | sort) <(npm list -g --depth=0 --parseable | awk -F'/' '{print $NF}' | sort)))
|
||||
|
||||
Reference in New Issue
Block a user