Files
Edu/packages/shared-ts/package.json
SpecialX 9cedf0c437 feat(portal-shell): v2.0 P0 shadcn standardization + security + streaming + error handling
- shadcn/ui 标准化:废弃纸感令牌,统一 bg-background/text-foreground 等
- Tailwind v4 + @theme inline,移除 tailwind.config.js
- React 19 use() + Suspense 流式渲染,首屏骨架秒出
- 三级错误边界:Route → Section → Widget 层层兜底
- 错误上报:useErrorReport → sendBeacon → /api/log mock 端点
- 三层安全边界:L1 角色门禁 / L2 权限点门禁 / L3 数据范围
- 权限位图 base36 压缩:67 权限点 → ~14 字符,JWT 体积减少 ≥ 99%
- notify 统一 Toast 封装,禁止业务直接 import sonner
- PluginBoundary 替代 PluginLoader(错误边界 + Suspense + Skeleton 三件套)

验证:typecheck 0 错误 / lint 0 错误 / build 6 路由生成成功
2026-07-17 16:10:05 +08:00

60 lines
1.5 KiB
JSON

{
"name": "@edu/shared-ts",
"version": "0.1.0",
"private": true,
"type": "module",
"exports": {
"./outbox": {
"types": "./dist/outbox/index.d.ts",
"default": "./dist/outbox/index.js"
},
"./bff": {
"types": "./dist/bff/index.d.ts",
"default": "./dist/bff/index.js"
},
"./federation": {
"types": "./dist/federation/index.d.ts",
"default": "./dist/federation/index.js"
},
"./contracts": {
"types": "./dist/contracts/index.d.ts",
"default": "./dist/contracts/index.js"
},
"./env-loader": {
"types": "./dist/env-loader/index.d.ts",
"default": "./dist/env-loader/index.js"
},
"./permission-bitmap": {
"types": "./dist/permission-bitmap.d.ts",
"default": "./dist/permission-bitmap.js"
}
},
"scripts": {
"build": "tsc",
"lint": "eslint src",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@grpc/grpc-js": "^1.12.0",
"@grpc/proto-loader": "^0.7.13",
"@nestjs/common": "^10.4.0",
"@nestjs/core": "^10.4.0",
"@paralleldrive/cuid2": "^2.2.2",
"dataloader": "^2.2.2",
"drizzle-orm": "^0.31.0",
"graphql": "^16.9.0",
"graphql-yoga": "^5.7.0",
"ioredis": "^5.4.0",
"kafkajs": "^2.2.4",
"pino": "^9.4.0",
"prom-client": "^15.1.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"pino-pretty": "^11.2.0",
"typescript": "^5.6.0"
}
}