feat(api): 搭建 API 与 Worker 骨架及契约基线

NestJS 11 + Fastify 统一错误体与 trace_id,/health 真实探活 DB/Redis,OpenAPI 3.1 契约含 20 个错误码;shared 包提供错误码、权限点、ULID、分页与通用 schema;worker 完成队列进程骨架。
This commit is contained in:
Stev_Wang committed 2026-11-02 17:20:46 +08:00
1 parent 09dbb27b66
commit 23067edb8f
70 files changed
+2445

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
{
"name": "@lingxi/render",
"version": "0.1.0",
"private": true,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --clean --sourcemap",
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"devDependencies": {
"tsup": "8.5.1",
"typescript": "5.9.3"
}
}
+5
View File
@@ -0,0 +1,5 @@
/**
* @lingxi/render 骨架占位:具体能力在后续批次实现(见开发计划 WBS)。
* 本包在 A0 阶段仅用于固定仓库结构与依赖方向。
*/
export const PACKAGE_NAME = '@lingxi/render';
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"types": []
},
"include": ["src"]
}