- 移除extension模块,将功能迁移至node-agent - 修复类型导出问题,使用export type明确类型导出 - 统一数据库连接方式,从直接导入改为使用config/database - 更新文档中的项目结构描述 - 添加多个服务的实用方法,如getForecast、getBalances等 - 修复类型错误和TS1205警告 - 优化RedisService调用方式 - 添加新的实体类型定义 - 更新审计日志格式,统一字段命名
84 lines
2.1 KiB
JSON
84 lines
2.1 KiB
JSON
{
|
|
"name": "server",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "nodemon src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"check": "tsc --noEmit",
|
|
"test": "jest --verbose",
|
|
"test:stress": "jest src/tests/performance/stress.test.ts --verbose",
|
|
"test:rbac": "jest src/tests/security/rbac.test.ts --verbose"
|
|
},
|
|
"jest": {
|
|
"preset": "ts-jest",
|
|
"testEnvironment": "node",
|
|
"testMatch": [
|
|
"**/*.test.ts"
|
|
],
|
|
"transform": {
|
|
"^.+\\.ts$": "ts-jest"
|
|
}
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"type": "commonjs",
|
|
"dependencies": {
|
|
"@nestjs/common": "^11.1.17",
|
|
"@nestjs/event-emitter": "^3.0.1",
|
|
"@nestjs/swagger": "^11.2.6",
|
|
"@nestjs/typeorm": "^11.0.0",
|
|
"@prisma/client": "^7.5.0",
|
|
"@types/bcrypt": "^6.0.0",
|
|
"@types/node-cron": "^3.0.11",
|
|
"@types/speakeasy": "^2.0.10",
|
|
"@types/uuid": "^10.0.0",
|
|
"@types/ws": "^8.18.1",
|
|
"bcrypt": "^6.0.0",
|
|
"bullmq": "^5.71.0",
|
|
"class-validator": "^0.15.1",
|
|
"cors": "^2.8.6",
|
|
"express": "^5.2.1",
|
|
"ioredis": "^5.10.0",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"knex": "^3.1.0",
|
|
"mysql2": "^3.18.2",
|
|
"node-cache": "^5.1.2",
|
|
"node-cron": "^4.2.1",
|
|
"redis": "^5.11.0",
|
|
"sharp": "^0.34.5",
|
|
"speakeasy": "^2.0.0",
|
|
"tsoa": "^7.0.0-alpha.0",
|
|
"typedi": "^0.10.0",
|
|
"typeorm": "^0.3.28",
|
|
"uuid": "^11.1.0",
|
|
"ws": "^8.19.0",
|
|
"xstate": "^5.0.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/config": "^4.0.3",
|
|
"@nestjs/testing": "^11.1.17",
|
|
"@types/cors": "^2.8.19",
|
|
"@types/express": "^5.0.6",
|
|
"@types/jest": "^30.0.0",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/node": "^25.3.3",
|
|
"@types/node-cache": "^4.1.3",
|
|
"@types/redis": "^4.0.10",
|
|
"@types/sharp": "^0.31.1",
|
|
"@types/speakeasy": "^2.0.10",
|
|
"@types/supertest": "^7.2.0",
|
|
"eslint": "^8.57.1",
|
|
"eslint-plugin-boundaries": "^4.0.0",
|
|
"jest": "^30.3.0",
|
|
"nodemon": "^3.1.14",
|
|
"supertest": "^7.2.2",
|
|
"ts-jest": "^29.4.6",
|
|
"ts-node": "^10.9.2"
|
|
}
|
|
}
|