fix: brew env

This commit is contained in:
2025-12-23 21:44:10 +02:00
parent 891ae505f8
commit 7b5e4e12d2
4 changed files with 20 additions and 37 deletions

View File

@@ -25,12 +25,10 @@ echo "npm $(npm --version)"
npm_dependencies=(
"firebase-tools"
# "neovim"
# "typescript-language-server"
# "typescript"
"@github/copilot"
)
npm_dependencies=($(comm -13 <(printf "%s\n" "${npm_dependencies[@]}" | sort) <(npm list -g --depth=0 --parseable | awk -F'/' '{print $NF}' | sort)))
npm_dependencies=($(comm -23 <(printf "%s\n" "${npm_dependencies[@]}" | sort) <(npm list -g --depth=0 --parseable | awk -F'/' '{print $NF}' | sort)))
if [ ${#npm_dependencies[@]} -gt 0 ]; then
npm install -g "${npm_dependencies[@]}"