Files

74 lines
1.9 KiB
JSON

{
"name": "college-ai-center",
"version": "0.1.0",
"description": "医科类高校 AI 学习中心系统 - 后端服务",
"author": "",
"private": true,
"license": "UNLICENSED",
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@nestjs/common": "10.4.4",
"@nestjs/config": "3.2.3",
"@nestjs/core": "10.4.4",
"@nestjs/jwt": "^10.2.0",
"@nestjs/platform-express": "10.4.4",
"@nestjs/typeorm": "10.0.2",
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"pg": "8.12.0",
"reflect-metadata": "0.2.2",
"rxjs": "7.8.1",
"typeorm": "0.3.20"
},
"devDependencies": {
"@nestjs/cli": "10.4.5",
"@nestjs/schematics": "10.1.4",
"@nestjs/testing": "10.4.4",
"@types/bcryptjs": "^2.4.6",
"@types/express": "4.17.21",
"@types/jest": "29.5.13",
"@types/node": "22.5.5",
"fast-check": "3.22.0",
"jest": "29.7.0",
"source-map-support": "0.5.21",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.5.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"^@common/(.*)$": "<rootDir>/common/$1",
"^@infra/(.*)$": "<rootDir>/infra/$1",
"^@modules/(.*)$": "<rootDir>/modules/$1"
}
}
}