-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
65 lines (65 loc) · 1.74 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
{
"name": "typescript-backend-template",
"version": "0.0.1",
"main": "src/main.ts",
"repository": "git@github.com:myfreax/typescript-backend-template.git",
"home":"https://www.myfreax.com",
"author": "myfreax <web@myfreax.com>",
"license": "Apache-2.0",
"scripts": {
"ts": "ts-node --files",
"start": "yarn ts src/main.ts",
"start:dev": "yarn ts-node-dev src/main.ts",
"postinstall": "husky install",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:cov": "jest --coverage",
"test:e2e": "jest --detectOpenHandles --config jest.json",
"prepare": "husky install"
},
"lint-staged": {
"*.ts": [
"eslint",
"prettier --write"
]
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"devDependencies": {
"@commitlint/cli": "^17.0.1",
"@commitlint/config-conventional": "^17.0.0",
"@types/jest": "^28.1.6",
"@types/node": "^18.6.5",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^13.0.3",
"prettier": "^2.3.0",
"supertest": "^6.1.3",
"ts-jest": "^28.0.3",
"ts-node": "^10.8.0",
"ts-node-dev": "^2.0.0",
"typescript": "^4.7.2"
}
}