-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
115 lines (115 loc) · 3.35 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
{
"name": "rest-scaffold",
"version": "0.0.1",
"description": "Base Code Structure for a REST based micro-service",
"author": "fer8a",
"private": false,
"license": "MIT",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"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": "jest --config ./test/jest-e2e.json",
"prepare": "husky && echo 'npx lint-staged' > .husky/pre-commit && echo 'npm run test:e2e' > .husky/pre-push"
},
"dependencies": {
"@fastify/helmet": "^11.1.1",
"@fastify/static": "^7.0.4",
"@nestjs/cache-manager": "^2.3.0",
"@nestjs/common": "^10.4.6",
"@nestjs/config": "^3.3.0",
"@nestjs/core": "^10.4.6",
"@nestjs/microservices": "^10.4.6",
"@nestjs/mongoose": "^10.1.0",
"@nestjs/platform-fastify": "^10.4.6",
"@nestjs/swagger": "^7.4.2",
"@nestjs/terminus": "^10.2.3",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.51.0",
"@opentelemetry/sdk-node": "^0.54.0",
"@prisma/client": "^5.21.1",
"cache-manager": "^5.7.6",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"kafkajs": "^2.2.4",
"mongoose": "^8.7.2",
"nest-winston": "^1.10.0",
"nestjs-pino": "^4.1.0",
"pino-http": "^10.3.0",
"qs": "^6.13.0",
"reflect-metadata": "^0.2.2",
"rimraf": "^6.0.1",
"rxjs": "^7.8.1",
"uuid": "^10.0.0",
"winston": "^3.15.0"
},
"devDependencies": {
"@golevelup/ts-jest": "^0.5.6",
"@nestjs/cli": "^10.4.5",
"@nestjs/schematics": "^10.2.2",
"@nestjs/testing": "^10.4.6",
"@types/express": "^5.0.0",
"@types/jest": "29.5.14",
"@types/node": "^22.8.0",
"@types/supertest": "^6.0.2",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.11.0",
"@typescript-eslint/parser": "^8.11.0",
"esbuild": "^0.24.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.6",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"pino-pretty": "^11.3.0",
"prettier": "^3.3.3",
"prisma": "^5.21.1",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.6.3"
},
"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": {
"@/(.*)": "<rootDir>/$1"
}
},
"lint-staged": {
"**/*.{js,ts}": [
"npm run lint",
"npm run format",
"npm run test --bail --findRelatedTests src/**/*spec.ts"
]
},
"prisma": {
"schema": "src/config/db/prisma/schema.prisma"
}
}