-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
150 lines (150 loc) · 5.64 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"name": "nestjs-microservice-boilerplate",
"version": "0.0.1",
"description": "",
"author": "",
"private": true,
"license": "UNLICENSED",
"scripts": {
"postinstall": "pnpm prisma:generate",
"build": "node ./scripts/build.mjs",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start:local": "docker compose up -d --build backend && docker compose watch",
"start": "nest start",
"start:dev": "cross-env NODE_ENV=development nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/apps/gateway/main",
"start:all": "node ./scripts/start.mjs",
"start:all:dev": "cross-env NODE_ENV=development node ./scripts/start.mjs",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"dotenv:prod": "dotenv -e ./env/production.env --",
"dotenv:dev": "dotenv -e ./env/development.env --",
"dotenv:test": "dotenv -e ./env/test.env --",
"redis": "docker-compose --file docker/redis/docker-compose.yaml up -d",
"mongodb": "docker-compose --file docker/mongodb/docker-compose.yaml up -d && pnpm prisma:generate:test && pnpm prisma:push:test",
"test:init": "pnpm redis && pnpm mongodb",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "cross-env NODE_ENV=test jest --logHeapUsage --verbose --ci --detectOpenHandles --runInBand --forceExit",
"prisma:generate": "pnpm prisma generate --schema=./libs/prisma/schema.prisma",
"prisma:push": "prisma db push --schema=./libs/prisma/schema.prisma",
"prisma:push:dev": "cross-env NODE_ENV=development pnpm dotenv:dev prisma db push --schema=./libs/prisma/schema.prisma",
"prisma:push:test": "pnpm dotenv:test pnpm prisma:push",
"prisma:generate:test": "pnpm dotenv:test pnpm prisma:generate"
},
"dependencies": {
"@faker-js/faker": "9.3.0",
"@liaoliaots/nestjs-redis": "10.0.0",
"@liaoliaots/nestjs-redis-health": "9.0.4",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/devtools-integration": "0.1.6",
"@nestjs/jwt": "10.2.0",
"@nestjs/microservices": "10.4.15",
"@nestjs/passport": "10.0.3",
"@nestjs/platform-express": "10.4.15",
"@nestjs/schedule": "4.1.2",
"@nestjs/swagger": "8.1.1",
"@nestjs/terminus": "10.2.3",
"@nestjs/throttler": "6.3.0",
"@prisma/client": "6.2.1",
"@willsoto/nestjs-prometheus": "6.0.1",
"argon2": "0.41.1",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
"client@latest": "link:@nestjs/@prisma/client@latest",
"compression": "1.7.5",
"cron": "3.2.1",
"envalid": "8.0.0",
"find-free-ports": "3.1.1",
"helmet": "8.0.0",
"ioredis": "5.4.2",
"lodash": "4.17.21",
"luxon": "3.5.0",
"nestjs-pino": "4.2.0",
"nestjs-throttler-storage-redis": "0.5.1",
"passport-jwt": "4.0.1",
"pino-pretty": "13.0.0",
"prisma-field-encryption": "1.6.0",
"prom-client": "15.1.3",
"reflect-metadata": "0.2.2",
"rxjs": "7.8.1",
"uuid": "11.0.5",
"yaml": "2.7.0"
},
"devDependencies": {
"@nestjs/cli": "10.4.9",
"@nestjs/schematics": "10.2.3",
"@nestjs/testing": "10.4.15",
"@types/express": "5.0.0",
"@types/jest": "29.5.14",
"@types/lodash": "4.17.14",
"@types/luxon": "3.4.2",
"@types/node": "22.10.5",
"@types/supertest": "6.0.2",
"@typescript-eslint/eslint-plugin": "8.19.1",
"@typescript-eslint/parser": "8.19.1",
"concurrently": "9.1.2",
"cross-env": "7.0.3",
"dotenv": "16.4.7",
"dotenv-cli": "8.0.0",
"eslint": "9.18.0",
"eslint-config-prettier": "10.0.1",
"eslint-plugin-prettier": "5.2.1",
"jest": "29.7.0",
"jest-extended": "4.0.2",
"prettier": "3.4.2",
"prettier-plugin-organize-imports": "4.1.0",
"prisma": "6.2.1",
"source-map-support": "0.5.21",
"supertest": "7.0.0",
"ts-jest": "29.2.5",
"ts-loader": "9.5.2",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.7.3"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testRegex": ".e2e-spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",
"<rootDir>/libs/"
],
"moduleNameMapper": {
"^@lib/prisma(|/.*)$": "<rootDir>/libs/prisma/src/$1",
"^@lib/decorators(|/.*)$": "<rootDir>/libs/decorators/src/$1",
"^@lib/interceptors(|/.*)$": "<rootDir>/libs/interceptors/src/$1",
"^@lib/filters(|/.*)$": "<rootDir>/libs/filters/src/$1",
"^@lib/common(|/.*)$": "<rootDir>/libs/common/src/$1",
"^@lib/logger(|/.*)$": "<rootDir>/libs/logger/src/$1",
"^@lib/config(|/.*)$": "<rootDir>/libs/config/src/$1",
"^@lib/scheduler(|/.*)$": "<rootDir>/libs/scheduler/src/$1",
"^@lib/middlewares(|/.*)$": "<rootDir>/libs/middlewares/src/$1",
"^@lib/health(|/.*)$": "<rootDir>/libs/health/src/$1",
"^@lib/audit.logger(|/.*)$": "<rootDir>/libs/audit.logger/src/$1",
"^@lib/errors(|/.*)$": "<rootDir>/libs/errors/src/$1",
"^@lib/service.registry(|/.*)$": "<rootDir>/libs/service.registry/src/$1",
"^@lib/metrics(|/.*)$": "<rootDir>/libs/metrics/src/$1",
"^@lib/dtos(|/.*)$": "<rootDir>/libs/dtos/src/$1",
"^@lib/guards(|/.*)$": "<rootDir>/libs/guards/src/$1",
"^@lib/rate.limiter(|/.*)$": "<rootDir>/libs/rate.limiter/src/$1",
"^@lib/redis(|/.*)$": "<rootDir>/libs/redis/src/$1"
}
}
}