fix: use .npmrc for pnpm onlyBuiltDependencies (#498)

Use .npmrc file for pnpm v11 build scripts approval.
This commit is contained in:
sagit
2026-05-07 20:43:29 +08:00
committed by GitHub
+1 -1
View File
@@ -4,7 +4,7 @@ FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json pnpm-lock.yaml* ./
RUN corepack enable pnpm && pnpm config set onlyBuiltDependencies '["@tailwindcss/oxide"]' && pnpm install --frozen-lockfile
RUN echo 'onlyBuiltDependencies[]=@tailwindcss/oxide' > .npmrc && corepack enable pnpm && pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build