Sfoglia il codice sorgente

fix: update installation method for typescript-language-server to use npm

Yuki Takei 1 giorno fa
parent
commit
8c4b568ca1

+ 3 - 3
.devcontainer/app/postCreateCommand.sh

@@ -26,9 +26,9 @@ pnpm config set store-dir /workspace/.pnpm-store
 pnpm install turbo --global
 
 # Install typescript-language-server for Claude Code LSP plugin
-# typescript-language-server uses the workspace's node_modules/typescript at runtime;
-# the global typescript here is only a fallback for environments where the workspace isn't bootstrapped yet.
-pnpm install --global typescript-language-server typescript
+# Use `npm -g` (not `pnpm --global`) so the binary lands in nvm's node bin, which is on the default PATH.
+# pnpm's global bin requires PNPM_HOME from ~/.bashrc, which the Claude Code extension's shell doesn't source.
+npm install -g typescript-language-server typescript
 
 # Install dependencies
 turbo run bootstrap

+ 3 - 1
.devcontainer/pdf-converter/postCreateCommand.sh

@@ -21,7 +21,9 @@ pnpm i -g pnpm
 pnpm install turbo --global
 
 # Install typescript-language-server for Claude Code LSP plugin
-pnpm install --global typescript-language-server typescript
+# Use `npm -g` (not `pnpm --global`) so the binary lands in nvm's node bin, which is on the default PATH.
+# pnpm's global bin requires PNPM_HOME from ~/.bashrc, which the Claude Code extension's shell doesn't source.
+npm install -g typescript-language-server typescript
 
 # Install dependencies
 turbo run bootstrap