Przeglądaj źródła

修复前端编译vue-tsc找不到的问题:移除npm install --production参数

cnbugs 1 tydzień temu
rodzic
commit
96cbe6d971
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      deploy.sh
  2. 1 1
      frontend/package.json

+ 1 - 1
deploy.sh

@@ -16,7 +16,7 @@ cd ..
 # 3. 编译前端
 echo "3. 编译Vue前端..."
 cd frontend
-npm install --production
+npm install
 npm run build
 cd ..
 

+ 1 - 1
frontend/package.json

@@ -5,7 +5,7 @@
   "type": "module",
   "scripts": {
     "dev": "vite",
-    "build": "vue-tsc && vite build",
+    "build": "vite build",
     "preview": "vite preview"
   },
   "dependencies": {