fix: 补全前端最小可运行入口 + 修前端配置缺陷

- 新增 index.html / src/main.tsx / src/App.tsx / src/index.css 最小入口
- 补 tsconfig.node.json(tsconfig 引用却缺失,导致 tsc 失败)
- package.json 加 type:module + 缺失的 eslint 依赖
  (@eslint/js / globals / typescript-eslint),eslint.config.js 此前 import 即崩
- 验证:pnpm build / lint / typecheck 三门禁全过,dist 正常产出

至此 backend / agent / frontend 三服务最小骨架均可运行。
This commit is contained in:
baozaotumao
2026-06-01 23:21:57 -07:00
parent df48c36422
commit c09c754983
6 changed files with 67 additions and 2 deletions
+4 -2
View File
@@ -2,6 +2,7 @@
"name": "{{ project_slug }}-frontend",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
@@ -27,8 +28,9 @@
"vite": "^5.4.0",
"typescript": "^5.5.0",
"eslint": "^9.11.0",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"@eslint/js": "^9.11.0",
"globals": "^15.9.0",
"typescript-eslint": "^8.7.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.0",
"prettier": "^3.3.0",