- ShrimpFieldTypes 加 Object/Array - IFieldConfig 加 fields(object 嵌套字段) + item(array 元素配置,递归) - collectRefs 重构成 collectOne(单字段+值),加 object(遍历 fields)/array(遍历元素套 item) 分支 → refs 下钻覆盖 object/array 里的嵌套 relation。 显示/编辑组件在 shrimp-admin。第一版从简:无 min/max、无排序、无递归校验引擎。
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "shrimp-server",
|
|
"version": "0.6.11",
|
|
"description": "Shrimp 框架后端 — 声明式字段驱动的 Node.js 管理后台框架(Express + Mongoose + JWT)",
|
|
"main": "dist/main/index.js",
|
|
"types": "dist/main/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/main/index.d.ts",
|
|
"default": "./dist/main/index.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"prepare": "tsc -p tsconfig.build.json",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"peerDependencies": {
|
|
"express": "^4 || ^5",
|
|
"mongoose": "^6 || ^7 || ^8",
|
|
"jsonwebtoken": "^8 || ^9",
|
|
"bcrypt": "^5 || ^6"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"express": { "optional": true },
|
|
"mongoose": { "optional": true },
|
|
"jsonwebtoken": { "optional": true },
|
|
"bcrypt": { "optional": true }
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.21",
|
|
"@types/jsonwebtoken": "^9.0.0",
|
|
"@types/bcrypt": "^5.0.0",
|
|
"@types/node": "^20.0.0",
|
|
"bcrypt": "^5.1.1",
|
|
"express": "^4.19.0",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"mongoose": "^8.0.0",
|
|
"tsx": "^4.7.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^1.4.0"
|
|
}
|
|
}
|