From c3033d66bd2132ea24f3638fead8c3acd00d6311 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Sat, 18 Oct 2025 15:01:04 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=89=93=E5=8C=85=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/package.json | 3 ++- package.json | 4 ++-- turbo.json | 10 ++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/package.json b/apps/web-antd/package.json index 2887939c..61d98424 100644 --- a/apps/web-antd/package.json +++ b/apps/web-antd/package.json @@ -16,7 +16,8 @@ }, "type": "module", "scripts": { - "build": "pnpm vite build", + "build:prod": "pnpm vite build", + "build:test": "pnpm vite build --mode test", "build:analyze": "pnpm vite build --mode analyze", "dev": "pnpm vite --mode development", "preview": "vite preview", diff --git a/package.json b/package.json index 3c603978..6ef23c21 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,8 @@ "scripts": { "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build", "build:analyze": "turbo build:analyze", - "build:antd": "pnpm run build --filter=@vben/web-antd", - "build:antd:test": "pnpm run build --filter=@vben/web-antd -- --mode test", + "build:antd": "pnpm run build --filter=@vben/web-antd build:prod", + "build:antd:test": "pnpm run build --filter=@vben/web-antd build:test", "build:docker": "./scripts/deploy/build-local-docker-image.sh", "build:docs": "pnpm run build --filter=@vben/docs", "build:play": "pnpm run build --filter=@vben/playground", diff --git a/turbo.json b/turbo.json index 3443e27c..aece6e36 100644 --- a/turbo.json +++ b/turbo.json @@ -23,6 +23,16 @@ ".vitepress/dist/**" ] }, + + "@vben/web-antd#build:prod": { + "dependsOn": ["^build"], + "outputs": ["dist/**"] + }, + "@vben/web-antd#build:test": { + "dependsOn": ["^build"], + "outputs": ["dist/**"] + }, + "preview": { "dependsOn": ["^build"], "outputs": ["dist/**"]