/
package.json
149 lines (149 loc) · 4.65 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
{
"name": "@consensys/metadata-api",
"private": true,
"version": "2.1.0",
"description": "Repository of Metadata API used in the Digital Assets Platform",
"license": "Apache",
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"docs": "speccy serve ./api-spec.json",
"prettier:check": "prettier --check \"src/**/*.ts\"",
"prettier": "prettier --write '{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 --watch",
"start:debug": "nest start --debug 0.0.0.0 --watch",
"start:db": "docker-compose -f docker-compose-db.yml up -d --remove-orphans",
"up": "npm-run-all start:db start:debug",
"down": "docker-compose -f docker-compose-db.yml down",
"lint:configurations:json": "ts-node -r tsconfig-paths/register script/runTemplateAndElementFilesValidations.ts",
"test": "jest src",
"test:functional": "APP_ENV=test jest tests/functional --detectOpenHandles --bail --runInBand --forceExit",
"test:watch": "jest src --watch",
"test:cov": "APP_ENV=test jest src tests/functional --ci --coverage --bail --detectOpenHandles --runInBand --forceExit",
"release": "standard-version",
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js --config src/ormconfig.ts",
"typeorm:create": "npm run typeorm migration:create -- -n",
"typeorm:generate": "npm run typeorm migration:generate -- -n",
"typeorm:run": "npm run typeorm migration:run -d src/ormconfig.ts",
"prepare": "husky install",
"docker": "docker-compose up --build",
"docker:detached": "docker-compose up --build -d",
"docker:down": "docker-compose down"
},
"dependencies": {
"@consensys/observability": "workspace:*",
"@consensys/ts-types": "workspace:*",
"@godaddy/terminus": "^4.9.0",
"@nestjs/common": "^8.4.7",
"@nestjs/config": "^2.1.0",
"@nestjs/core": "^8.4.7",
"@nestjs/platform-express": "^8.4.7",
"@nestjs/swagger": "^5.2.1",
"@nestjs/terminus": "^8.1.0",
"@nestjs/typeorm": "8.0.2",
"axios": "^0.27.2",
"axios-retry": "^3.3.1",
"class-transformer": "0.4.0",
"class-validator": "^0.13.2",
"dotenv": "^16.0.1",
"joi": "^17.6.0",
"lodash": "^4.17.21",
"multer": "1.4.4-lts.1",
"pg": "^8.7.3",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.5.5",
"swagger-ui-express": "^4.4.0",
"typeorm": "0.2.38",
"uuid": "^8.3.2",
"web3-utils": "^1.7.4",
"xss": "^1.0.10"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@nestjs/cli": "^8.1.4",
"@nestjs/schematics": "^8.0.4",
"@nestjs/testing": "^8.1.2",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.2",
"@types/lodash": "^4.14.176",
"@types/node": "^18.0.3",
"@types/supertest": "^2.0.11",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"jest": "^27.3.1",
"jest-create-mock-instance": "^1.1.0",
"lint-staged": "^13.0.3",
"mock-express-request": "^0.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"standard-version": "^9.3.2",
"supertest": "^6.2.3",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
"ts-node": "^10.8.2",
"tsconfig-paths": "^3.11.0",
"typescript": "^4.7.4"
},
"engines": {
"node": ">= 18",
"npm": ">= 8"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"modulePaths": [
"./"
],
"setupFiles": [
"<rootDir>/tests/setEnvVars.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/**",
"!src/migrations/**"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node"
},
"lint-staged": {
"*.ts": [
"npm run lint:fix --",
"npm run prettier"
]
}
}