-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
123 lines (123 loc) · 5.2 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
{
"name": "common-app-api",
"version": "1.0.0",
"description": "",
"type": "module",
"_scriptsComment": {
"nodemon quirks": "nodemon only signals and waits on the immediate child process to terminate before restarting, so if the nodemon exec command spawns children, old processes may be left running when new processes start, causing errors like EADDRINUSE. This is why, for example, we don't call 'pnpm build' from nodemon, but instead specify the full command.",
"debug": "run all debug:* and watch* scripts",
"debug:watch": "2 seconds after nodemon notices changes to .js files in the build/ folder, start the server",
"watch:build": "swc watches the src folder, if there's any changes at all, build our .js files + source maps and save them to /build dir",
"watch:check": "nodemon watches the src folder, if any changes detected on .ts files, re-running the type checker to detect errors (but not generating output files)"
},
"engines": {
"node": ">=20"
},
"scripts": {
"check": "tsc --noEmit",
"container-build": "docker compose run --rm api pnpm build",
"build": "pnpm -r --filter ./packages/schemas run build && pnpm check && swc src --source-maps true --copy-files --out-dir build",
"start": "node ./build/server.js",
"start:debug": "node --inspect=0.0.0.0:9229 ./build/server.js | pino-pretty -c",
"dev": "pnpm run -r --parallel --include-workspace-root '/^(watch|dev):.*/'",
"dev:watch": "nodemon --verbose --delay 2 --watch 'build/**' -e js --exec 'node ./build/server.js'",
"debug": "pnpm run -r --parallel --include-workspace-root '/^(watch|debug):.*/'",
"debug:watch": "nodemon --delay 2 --watch 'build/**' -e js --exec 'node --inspect=0.0.0.0:9229 ./build/server.js | pino-pretty -c'",
"watch:build": "swc src --watch --source-maps true --copy-files --out-dir build",
"watch:check": "nodemon --watch 'src/**' -e ts --exec 'tsc --noEmit'",
"container-install": "./scripts/container-install.sh",
"container-uninstall": "./scripts/container-uninstall.sh",
"format": "./scripts/container-format.sh",
"lint": "./scripts/container-lint.sh",
"lint:fix": "./scripts/lint-fix.sh",
"preinstall": "npx only-allow pnpm",
"test": "./scripts/container-test.sh",
"package:email-sender": "pnpm -r --filter ./packages/email-sender run package",
"prepare": "husky install",
"prisma:migrate": "docker compose run --rm api prisma migrate dev",
"prisma:seed": "docker compose run --rm api prisma db seed",
"prisma:update": "docker compose run -T --rm api bash -c 'prisma db push && tsx ./scripts/createSkillsView.ts && tsx ./scripts/createCausesView.ts'",
"generate-spec": "docker compose run -T --rm api tsx ./scripts/writeSpec.ts",
"sync-skills": "docker compose run -T --rm api tsx ./scripts/skillSync.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tekalo/common-app-api.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/tekalo/common-app-api/issues"
},
"homepage": "https://github.com/tekalo/common-app-api#readme",
"dependencies": {
"@aws-sdk/client-s3": "3.540.0",
"@aws-sdk/client-ses": "3.540.0",
"@aws-sdk/client-sqs": "3.540.0",
"@aws-sdk/s3-presigned-post": "3.540.0",
"@aws-sdk/s3-request-presigner": "3.540.0",
"@capp/schemas": "workspace:*",
"@prisma/client": "5.12.0",
"@quixo3/prisma-session-store": "3.1.13",
"@sentry/node": "7.109.0",
"@sentry/types": "7.109.0",
"@types/auth0": "3.3.10",
"@types/cookie": "0.6.0",
"auth0": "4.3.1",
"express": "4.19.2",
"express-oauth2-jwt-bearer": "1.6.0",
"express-session": "1.18.0",
"husky": "9.0.11",
"jest-mock-extended": "3.0.5",
"jose": "5.2.3",
"pino": "8.19.0",
"pino-http": "9.0.0",
"swagger-ui-express": "5.0.0",
"zod": "3.22.4",
"zod-openapi": "2.14.0"
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@swc/cli": "0.1.65",
"@swc/core": "1.3.105",
"@swc/jest": "0.2.36",
"@tsconfig/node20": "20.1.4",
"@types/aws-lambda": "^8.10.122",
"@types/cookie-parser": "1.4.7",
"@types/express": "4.17.21",
"@types/express-session": "1.18.0",
"@types/jest": "29.5.12",
"@types/node": "20.12.2",
"@types/supertest": "6.0.2",
"@types/swagger-ui-express": "4.1.6",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"cookie": "0.6.0",
"cookie-parser": "1.4.6",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-markdownlint": "0.5.0",
"eslint-plugin-prettier": "5.1.3",
"jest": "29.7.0",
"nodemon": "3.1.0",
"pino-pretty": "11.0.0",
"prettier": "3.2.5",
"prisma": "5.12.0",
"sentry-testkit": "5.0.9",
"supertest": "6.3.4",
"tsx": "4.7.1",
"typescript": "5.4.3"
},
"//": "added to resolve a critical vulnerability in @babel/traverse 7.23.0",
"peerDependencies": {
"@babel/core": "7.24.3"
},
"prisma": {
"schema": "db/prisma/schema.prisma",
"seed": "tsx ./db/resources/seed.ts"
}
}