Files
awoooi/apps/web/package.json
OG T 936f1d64de feat(types): Phase 14.3 共用型別系統 (#97-#100)
建立 Pydantic → TypeScript 自動生成工具鏈:

1. scripts/generate-schemas.py
   - 從 Pydantic 模型生成 JSON Schema
   - 正確處理 Pydantic 2.x 的 $defs 格式
   - 支援 Approval/Incident/Terminal/Playbook/CSRF 模型

2. packages/shared-types/
   - @awoooi/shared-types 套件
   - 44 個型別定義,40 個介面
   - json-schema-to-typescript 自動生成

3. 前端整合
   - apps/web 加入 @awoooi/shared-types 依賴
   - typecheck 通過

使用方式:
  cd packages/shared-types
  pnpm generate  # 重新生成型別

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-31 19:10:33 +08:00

45 lines
1.1 KiB
JSON

{
"name": "@awoooi/web",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@awoooi/lewooogo-core": "workspace:*",
"@awoooi/shared-types": "workspace:^",
"@sentry/nextjs": "^10.45.0",
"@tanstack/react-query": "^5.17.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.0",
"lucide-react": "^0.577.0",
"next": "14.1.0",
"next-intl": "^4.8.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recharts": "^3.8.0",
"tailwind-merge": "^2.2.0",
"zod": "^3.22.0",
"zustand": "^4.5.0"
},
"devDependencies": {
"@awoooi/eslint-config": "workspace:*",
"@awoooi/tsconfig": "workspace:*",
"@playwright/test": "^1.58.2",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"autoprefixer": "^10.4.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.1.0",
"eslint-plugin-i18next": "^6.1.3",
"playwright": "^1.58.2",
"postcss": "^8.4.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.3.0"
}
}