-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
141 lines (141 loc) · 4.34 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
{
"name": "nest-typescript-starter",
"private": true,
"version": "1.0.0",
"description": "Nest TypeScript starter repository",
"license": "MIT",
"scripts": {
"db:up": "env-cmd -f ./config/.env.development docker compose up -d",
"db:generate": "env-cmd -f ./config/.env.development prisma generate",
"db:push": "env-cmd -f ./config/.env.development prisma db push",
"db:push:prod": "env-cmd -f ./config/.env.production prisma db push",
"db:push:test": "env-cmd -f ./config/.env.test prisma db push --force-reset",
"db:down": "env-cmd -f ./config/.env.development docker compose down",
"build": "nest build",
"format": "prettier --write \"<rootDir>/**/*.ts\" \"test/**/*.ts\"",
"start": "env-cmd -f ./config/.env.development nest start",
"start:dev": "env-cmd -f ./config/.env.development nest start --watch",
"start:debug": "env-cmd -f ./config/.env.development nest start --debug --watch",
"start:prod": "env-cmd -f ./config/.env.production node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "env-cmd -f ./config/.env.development jest",
"test:watch": "env-cmd -f ./config/.env.development jest --watch",
"test:cov": "env-cmd -f ./config/.env.development jest --coverage",
"test:debug": "env-cmd -f ./config/.env.development node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/jest/bin/jest --runInBand",
"test:e2e": "npm run db:push:test && env-cmd -f ./config/.env.test jest --config jest-e2e.json"
},
"dependencies": {
"@apollo/server": "4.10.4",
"@nestjs/apollo": "12.1.0",
"@nestjs/cache-manager": "2.2.2",
"@nestjs/common": "10.3.2",
"@nestjs/config": "3.2.2",
"@nestjs/core": "10.3.2",
"@nestjs/graphql": "12.1.1",
"@nestjs/jwt": "10.2.0",
"@nestjs/passport": "10.0.3",
"@nestjs/platform-express": "10.3.2",
"@nestjs/terminus": "10.2.3",
"@prisma/client": "5.13.0",
"bcrypt": "5.1.1",
"cache-manager": "5.5.2",
"cache-manager-redis-yet": "5.0.0",
"class-validator": "0.14.1",
"graphql": "16.8.1",
"graphql-scalars": "1.23.0",
"passport-jwt": "4.0.1",
"redis": "4.6.14",
"reflect-metadata": "0.2.1",
"rxjs": "7.8.1"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@nestjs/cli": "10.3.1",
"@nestjs/schematics": "10.1.0",
"@nestjs/testing": "10.3.2",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.66",
"@swc/jest": "0.2.36",
"@types/bcrypt": "5.0.2",
"@types/express": "4.17.21",
"@types/jest": "29.5.12",
"@types/node": "20.11.16",
"@types/passport-jwt": "4.0.1",
"@types/supertest": "6.0.2",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"cz-conventional-changelog": "3.3.0",
"env-cmd": "^10.1.0",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.3",
"jest": "29.7.0",
"jest-mock-extended": "3.0.7",
"prettier": "3.2.5",
"prisma": "5.13.0",
"source-map-support": "0.5.21",
"supertest": "6.3.4",
"ts-jest": "29.1.2",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"tsconfig-paths": "4.2.0",
"typescript": "5.3.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": {
"@app(.*)": [
"<rootDir>/modules/app/$1"
],
"@user(.*)": [
"<rootDir>/modules/user/$1"
],
"@post(.*)": [
"<rootDir>/modules/post/$1"
],
"@auth(.*)": [
"<rootDir>/modules/auth/$1"
],
"@health(.*)": [
"<rootDir>/modules/health/$1"
],
"@decorators(.*)": [
"<rootDir>/decorators/$1"
],
"@directives(.*)": [
"<rootDir>/directives/$1"
],
"@dto(.*)": [
"<rootDir>/dto/$1"
],
"@models(.*)": [
"<rootDir>/models/$1"
],
"@providers(.*)": [
"<rootDir>/providers/$1"
],
"@mocks(.*)": [
"<rootDir>/tests/mocks/$1"
]
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}