generated from gdsc-nits-org/PENPAL-T
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
67 lines (67 loc) · 2.12 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
{
"name": "penpal-t",
"config": {
"dist_dir": "dist",
"build_dir": "build",
"build_entry": "handler.js",
"dist_outfile": "main.js"
},
"scripts": {
"start": "pnpm build && sls offline --httpPort 5000",
"dev": "nodemon -e ts --exec \"pnpm run start\"",
"build": "pnpm compile && pnpm esbuild && (rm -rf $npm_package_config_build_dir || del /s /q /f %npm_package_config_build_dir% 1>nul)",
"esbuild": "(esbuild $npm_package_config_build_dir/$npm_package_config_build_entry --bundle --platform=node --target=node18 --outfile=$npm_package_config_dist_dir/$npm_package_config_dist_outfile --minify 2>/dev/null || esbuild %npm_package_config_build_dir%/%npm_package_config_build_entry% --bundle --platform=node --target=node18 --outfile=%npm_package_config_dist_dir%/%npm_package_config_dist_outfile% --minify)",
"compile": "tsc",
"lint": "eslint . --ext .ts --fix",
"pretty": "pnpm prettier --write .",
"precommit": "lint-staged",
"prepare": "npx simple-git-hooks",
"db:update": "prisma migrate dev"
},
"devDependencies": {
"@types/cors": "^2.8.13",
"@types/express": "^4.17.16",
"@types/morgan": "^1.9.4",
"@types/node": "^18.11.18",
"@types/swagger-ui-express": "^4.1.3",
"@types/yamljs": "^0.2.31",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"esbuild": "^0.17.4",
"eslint": "^8.32.0",
"lint-staged": "^13.1.0",
"nodemon": "^2.0.20",
"prettier": "^2.8.3",
"prisma": "^4.9.0",
"serverless": "^3.26.0",
"serverless-offline": "^12.0.4",
"simple-git-hooks": "^2.8.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.2",
"typescript": "^4.9.4"
},
"dependencies": {
"@prisma/client": "^4.9.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"helmet": "^6.0.1",
"morgan": "^1.10.0",
"serverless-http": "^3.1.1"
},
"lint-staged": {
"*.ts": [
"pnpm lint",
"pnpm pretty"
]
},
"simple-git-hooks": {
"pre-commit": "pnpm precommit"
},
"nodemonConfig": {
"ignore": [
"./build/**",
"./dist/**",
".serverless/**"
]
}
}