From 89a20ae096cdc6b83ad37c9b1f5a5a4cc12c12f0 Mon Sep 17 00:00:00 2001 From: oxiaoyu <825663811@qq.com> Date: Tue, 19 May 2026 16:57:38 +0800 Subject: [PATCH] fix: enable all build scripts in .npmrc --- backend/.npmrc | 5 +---- backend/Dockerfile | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/.npmrc b/backend/.npmrc index 97317ff..58e7c0b 100644 --- a/backend/.npmrc +++ b/backend/.npmrc @@ -1,5 +1,2 @@ enable-pre-post-scripts=true -onlyBuiltDependencies[]=@prisma/client -onlyBuiltDependencies[]=@prisma/engines -onlyBuiltDependencies[]=esbuild -onlyBuiltDependencies[]=prisma \ No newline at end of file +only-built-dependencies=true \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index 4f61f5f..1c03314 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,8 +4,6 @@ FROM node:22-alpine AS builder WORKDIR /app -ENV PNPM_APPROVE_BUILDS=* - COPY package.json pnpm-lock.yaml .npmrc ./ RUN corepack enable && pnpm install --frozen-lockfile