fix(frontend): 移除 openapi-typescript 依赖,解决 TS6 peer 冲突导致服务器 npm install 失败

- openapi-typescript 仅用于本地 gen:api 生成类型,不参与构建,服务器不需要
- gen:api 改用 npx --yes openapi-typescript@7.13.0 按需拉取
- 服务器 npm install 不再需要 --legacy-peer-deps
This commit is contained in:
2026-08-04 10:13:08 +08:00
parent 3b5f70f1f3
commit e6ddea33a2
2 changed files with 2 additions and 351 deletions
+1 -2
View File
@@ -7,7 +7,7 @@
"dev": "vite",
"build": "vue-tsc -b && vite build",
"preview": "vite preview",
"gen:api": "openapi-typescript ../openapi.json -o src/types/api.ts"
"gen:api": "npx --yes openapi-typescript@7.13.0 ../openapi.json -o src/types/api.ts"
},
"dependencies": {
"air-datepicker": "^3.6.0",
@@ -22,7 +22,6 @@
"@types/node": "^24.12.3",
"@vitejs/plugin-vue": "^6.0.6",
"@vue/tsconfig": "^0.9.1",
"openapi-typescript": "^7.13.0",
"typescript": "~6.0.2",
"vite": "^8.0.12",
"vue-tsc": "^3.2.8"