node: add global ts packages

This commit is contained in:
Tomas Mirchev 2025-03-30 04:40:02 +02:00
parent 66fa3e98ec
commit df4772ed00
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
ARG VERSION="latest"
FROM registry.tomastm.com/base-debian:${VERSION}
ARG VERSION="latest-arm64"
FROM registry.tomastm.com/base-ubuntu:${VERSION}
COPY install-packages.sh /tmp/install-packages.sh
RUN sudo chmod +x /tmp/install-packages.sh && /tmp/install-packages.sh && sudo rm /tmp/install-packages.sh

View File

@ -24,8 +24,15 @@ corepack enable npm
corepack enable pnpm
corepack enable yarn
# Set up PNPM environment for the current script execution
export PNPM_HOME="$HOME/.local/share/pnpm"
mkdir -p "$PNPM_HOME"
export PATH="$PNPM_HOME:$PATH"
# Now install global packages
pnpm add -g vscode-langservers-extracted typescript-language-server
# Also add to .zshrc for future shell sessions
cat << 'EOF' >> $HOME/.zshrc
# pnpm