/
package.json
123 lines (123 loc) · 3.73 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
{
"name": "@consensys/mailing-api",
"private": true,
"version": "23.0.0",
"description": "Repository of API Mailing used in the Digital Assets Platform",
"license": "Apache",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"prettier": "prettier --write '{src,apps,libs,test}/**/*.ts'",
"prettier:check": "prettier --check '{src,apps,libs,test}/**/*.ts'",
"lint": "eslint --cache '{src,apps,libs,test}/**/*.ts'",
"lint:fix": "eslint --cache --fix '{src,apps,libs,test}/**/*.ts'",
"start": "nest start",
"stop": "pkill --signal SIGINT api-boilerplate",
"start:dev": "nest start --debug --watch",
"docker": "docker-compose up --build",
"docker:detached": "docker-compose up -d --build",
"docker:down": "docker-compose down",
"test": "jest src",
"readiness:check": "PIPELINE=true ts-node integration/utils/readyCheck.ts",
"test:integration:pipeline": "PIPELINE=true NODE_ENV=development jest integration --detectOpenHandles --verbose --forceExit --runInBand",
"test:integration": "INTEGRATION_TEST=true jest integration --detectOpenHandles --runInBand --verbose --forceExit",
"test:watch": "jest src --watch",
"test:cov": "jest src --ci --coverage",
"release": "standard-version",
"prepare": "husky install"
},
"dependencies": {
"@consensys/auth": "workspace:*",
"@consensys/error-handler": "workspace:*",
"@consensys/observability": "workspace:*",
"@nestjs/common": "^8.4.7",
"@nestjs/core": "^8.4.7",
"@nestjs/platform-express": "^8.4.7",
"@nestjs/swagger": "^5.2.1",
"@nestjs/terminus": "^8.1.0",
"axios": "^0.27.2",
"axios-retry": "^3.2.5",
"dotenv": "^16.0.1",
"joi": "^17.6.0",
"node-mailjet": "^3.3.13",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"swagger-ui-express": "^4.4.0"
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/express": "^4.17.13",
"@types/jest": "^28.0.0",
"@types/node": "^18.0.3",
"@types/node-mailjet": "^3.3.7",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"husky": "^8.0.1",
"jest": "^28.0.3",
"jest-create-mock-instance": "^2.0.0",
"jest-junit": "^12.0.0",
"jest-sonar-reporter": "^2.0.0",
"lint-staged": "^13.0.3",
"prettier": "^2.0.5",
"standard-version": "^9.0.0",
"ts-jest": "^28.0.1",
"ts-node": "^10.8.1",
"typescript": "^4.7.4"
},
"jest": {
"globalSetup": "./integration/utils/globalSetup.ts",
"globalTeardown": "./integration/utils/globalTeardown.ts",
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"coverageThreshold": {
"global": {
"statements": 0,
"branches": 0,
"functions": 0,
"lines": 0
}
},
"rootDir": "./",
"testRegex": ".test.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"transformIgnorePatterns": [
"/dist/",
"/coverage",
"/node_modules/"
],
"collectCoverageFrom": [
"src/*/**/*.{ts,js}",
"!src/**/{server,sleep,jwtUtils}.{ts,js}",
"!src/{validation,modules,guards}/**",
"!src/services/instances/**"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"testResultsProcessor": "jest-sonar-reporter",
"reporters": [
"default",
"jest-junit"
]
},
"lint-staged": {
"*.ts": [
"npm run lint:fix --",
"npm run prettier"
]
},
"overrides": {
"minimist": "1.2.6"
}
}