-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
101 lines (101 loc) · 2.63 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
{
"name": "minimal-express",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start:dev": "nodemon --ext ts --exec 'npm run build && node --env-file=.env build/src/index.js'",
"build": "npm run type-check && swc src --out-dir build",
"start:prod": "NODE_ENV=production node build/src/index.js",
"type-check": "tsc --noEmit",
"test": "jest",
"fmt": "npx prettier --write ./src/",
"lint": "npx eslint --fix ./src/ --ext .ts",
"check": "npm run type-check && npm run lint",
"db:migrate": "node --env-file=.env ./node_modules/.bin/node-pg-migrate up",
"db:migration": "node-pg-migrate create -j sql",
"db:clear": "node --env-file=.env ./build/src/lib/scripts/clearDatabase.js",
"gen:secret": "node -e \"console.log(require('node:crypto').randomBytes(64).toString('hex'))\""
},
"jest": {
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
},
"testEnvironment": "node",
"modulePathIgnorePatterns": [
"<rootDir>/build/"
],
"moduleNameMapper": {
"@/(.*)": "<rootDir>/src/$1"
}
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-console": "warn",
"quotes": [
"warn",
"double",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": [
"warn",
"never"
],
"no-unused-vars": "warn"
}
},
"prettier": {
"singleQuote": false,
"semi": false,
"tabWidth": 2,
"trailingComma": "all"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"devDependencies": {
"@swc/cli": "^0.3.12",
"@swc/core": "^1.5.5",
"@swc/jest": "^0.2.36",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/jsonwebtoken": "^9.0.6",
"@types/morgan": "^1.9.9",
"@types/node": "^20.12.11",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"nodemon": "^3.1.0",
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
"dependencies": {
"@moeenn/recover": "^1.0.2",
"@status/codes": "^1.6.2",
"argon2": "^0.40.1",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.19.2",
"helmet": "^7.1.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"node-pg-migrate": "^7.3.2",
"postgres": "^3.4.4",
"winston": "^3.13.0",
"zod": "^3.23.8"
}
}