fix(sync): move typescript to dependencies to fix Docker build
npm silently skips devDependencies in some Alpine+npm combinations, causing tsc to be missing even after npm install. Moving typescript to regular dependencies guarantees it is always installed and its .bin symlink is created regardless of NODE_ENV. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ COPY package*.json .npmrc ./
|
||||
RUN npm install
|
||||
COPY tsconfig.json ./
|
||||
COPY src ./src
|
||||
RUN ./node_modules/.bin/tsc && npm prune --production
|
||||
RUN npm run build && npm prune --production
|
||||
|
||||
# Stage 2: runtime with Playwright
|
||||
FROM mcr.microsoft.com/playwright:v1.47.0-jammy
|
||||
|
||||
Reference in New Issue
Block a user