-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 1.83 KB
/
package.json
File metadata and controls
75 lines (75 loc) · 1.83 KB
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
{
"name": "shopping-cart-promos-challenge",
"version": "1.0.0",
"description": "Shopping Cart With Promotions",
"main": "src/main.ts",
"author": "Hugo Gouveia",
"license": "MIT",
"private": true,
"engines": {
"node": ">=16.18.0",
"npm": "please-use-yarn",
"yarn": ">=1.22.0"
},
"scripts": {
"prepare": "husky install",
"prebuild": "rimraf dist",
"build": "tsc --project tsconfig.build.json",
"start": "PROJECT_ENV=dev nodemon src/main.ts",
"start:dev": "PROJECT_ENV=dev nodemon src/main.ts",
"lint": "eslint . --fix",
"lint:ci": "eslint .",
"format": "prettier --write .",
"format:ci": "prettier --check .",
"style": "yarn format && yarn lint",
"style:ci": "yarn format:ci && yarn lint:ci",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.test\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage/tests",
"testEnvironment": "node",
"moduleNameMapper": {
"src/(.*)": "<rootDir>/../src/$1"
}
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/types": "^17.0.0",
"@types/express": "^4.17.14",
"@types/jest": "^29.2.0",
"@types/node": "^18.11.2",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"jest": "^29.2.1",
"nodemon": "^2.0.20",
"prettier": "^2.7.1",
"ts-jest": "^29.0.3",
"ts-mockito": "^2.6.1"
},
"dependencies": {
"express": "^4.18.2",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.0",
"typescript": "^4.8.4"
}
}