文件
shanghaipeiwan/server/package.json
xcbyy 1ff4da290a feat(data): 新增历史数据归属订正脚本(默认 dry-run,--apply 写库)
- companions.user_id:按昵称唯一匹配用户回填(避免重复占用)

- finance_records.user_id:按充值/提现/订单/对手方规则回填,无法唯一确定则保留不填

- 默认仅预览,幂等可重复执行;新增 npm 脚本 backfill:ownership 与回归护栏

- 文档补充订正说明(79 套件/611 用例全绿)
2026-10-19 08:58:24 +08:00

43 行
976 B
JSON

{
"name": "peiwan-server",
"version": "1.0.0",
"description": "陪玩小程序核心业务服务端",
"main": "dist/index.js",
"scripts": {
"dev": "tsx watch src/index.ts",
"test": "jest --verbose",
"test:watch": "jest --watch",
"build": "tsc",
"start": "node dist/src/index.js",
"backfill:ownership": "tsx scripts/backfill-ownership.ts"
},
"keywords": [
"peiwan",
"game",
"activity",
"tdd"
],
"author": "",
"license": "ISC",
"devDependencies": {
"@types/cors": "^2.8.19",
"@types/express": "^5.0.6",
"@types/jest": "^29.5.14",
"@types/multer": "^2.3.0",
"@types/node": "^22.13.4",
"jest": "^29.7.0",
"prisma": "8.0.0-rc.17",
"ts-jest": "^29.2.5",
"tsx": "^4.23.15",
"typescript": "^5.7.3"
},
"dependencies": {
"@prisma/client": "^7.10.0",
"cors": "^2.8.6",
"dotenv": "^18.0.4",
"express": "^5.2.1",
"multer": "^2.4.0",
"mysql2": "^3.24.4"
}
}