fix(frontend): configure pnpm v11 build approvals in workspace file
pnpm v11 no longer supports onlyBuiltDependencies in package.json and does not accept install-time --allow-build flags. Move build-script approvals to pnpm-workspace.yaml and copy it before install in Dockerfile so CI Docker builds can apply allowBuilds during pnpm install.
This commit is contained in:
+2
-1
@@ -9,11 +9,12 @@ ENV VITE_IS_DOCKER=true
|
||||
|
||||
# 复制依赖文件
|
||||
COPY package*.json ./
|
||||
COPY pnpm-workspace.yaml ./
|
||||
COPY packages/xlsx-0.20.2.tgz ./packages/xlsx-0.20.2.tgz
|
||||
|
||||
# 安装依赖
|
||||
RUN corepack enable
|
||||
RUN pnpm install --allow-build=@vue-office/pptx --allow-build=esbuild --allow-build=vue-demi
|
||||
RUN pnpm install
|
||||
|
||||
# 复制项目文件
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user