Browse Source

🔧 chore(build): 优化构建脚本

- 移除冗余的 build:api 构建步骤
- 更新 build 命令,仅保留必要的客户端和服务器端构建
yourname 4 months ago
parent
commit
883a4e597c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      package.json

+ 1 - 2
package.json

@@ -5,10 +5,9 @@
   "type": "module",
   "scripts": {
     "dev": "PORT=8080 node server",
-    "build": "npm run build:client && npm run build:server && npm run build:api",
+    "build": "npm run build:client && npm run build:server",
     "build:client": "vite build --outDir dist/client --manifest",
     "build:server": "vite build --ssr src/server/index.tsx --outDir dist/server",
-    "build:api": "vite build --ssr src/server/api.ts --outDir dist/api",
     "start": "PORT=8080 cross-env NODE_ENV=production node server"
   },
   "dependencies": {