{
  "name": "@awoooi/shared-types",
  "version": "1.0.0",
  "description": "AWOOOI 前後端共用型別定義 (自動生成自 Pydantic) - 修改 Pydantic 後執行 pnpm generate",
  "main": "./src/index.ts",
  "types": "./src/index.ts",
  "scripts": {
    "generate:schema": "cd ../../apps/api && python ../../scripts/generate-schemas.py",
    "generate:types": "json2ts -i ./schemas/api-types.json -o ./src/api-types.ts --bannerComment \"/* Auto-generated from Pydantic models - DO NOT EDIT */\" --unreachableDefinitions",
    "generate": "pnpm generate:schema && pnpm generate:types",
    "clean": "rm -rf ./schemas/*.json ./src/api-types.ts"
  },
  "devDependencies": {
    "json-schema-to-typescript": "^15.0.0",
    "typescript": "^5.0.0"
  },
  "files": [
    "src",
    "schemas"
  ],
  "publishConfig": {
    "access": "public"
  }
}
