Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
212 lines (212 loc) · 11.1 KB
/
Copy pathpackage.json
File metadata and controls
212 lines (212 loc) · 11.1 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
{
"name": "upchieve-server",
"version": "0.0.0",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "if [ -x ./bin/install_git_hooks.sh ]; then ./bin/install_git_hooks.sh; fi",
"build": "pnpm run build:api-contracts && tsc --p tsconfig.server.json",
"build:api-contracts": "pnpm --filter @upchieve/api-contracts build",
"deploy:dev": "./bin/deploy.sh dev",
"dev:revision": "az containerapp revision list --name development-container-app-subway --resource-group development-resource-group | jq -r '.[0] | \"\\(.name) - \\(.properties.runningState)\"'",
"deploy:local": "./bin/deploy.sh",
"start": "node -r newrelic build/main",
"start:worker": "node build/worker",
"start:socket-servers-monitoring": "node build/socket-servers-monitoring",
"build:database": "docker build -t subway-postgres .",
"dev:backend": "FORCE_COLOR=1 op run --env-file=./.env.op -- doppler run -- ts-node-dev -P tsconfig.server.json --watch server --transpile-only server/main",
"dev:services": "op run --env-file=./.env.op -- doppler run -- docker compose --profile dev up -d --build",
"dev:worker": "FORCE_COLOR=1 op run --env-file=./.env.op -- doppler run -- ts-node-dev -P tsconfig.server.json --watch server --transpile-only server/worker",
"e2e:backend": "DOTENV_CONFIG_PATH=.env.e2e ts-node-dev -r dotenv/config -P tsconfig.server.json --watch server --transpile-only server/main",
"e2e:destroy": "docker compose --env-file .env.e2e --profile e2e down -v",
"e2e:create": "docker compose --env-file .env.e2e --profile e2e down -v && docker compose --env-file .env.e2e --profile e2e up -d --wait",
"dev:test:integration": "pnpm e2e:create && pnpm test:integration; status=$?; pnpm e2e:destroy; exit $status",
"test:integration": "DOTENV_CONFIG_PATH=.env.e2e jest -c jest.config.e2e.js",
"lint": "pnpm run lint:backend:dry",
"lint:backend": "prettier --write \"server/**/*.ts\" > /dev/null && pnpm run lint:eslint",
"lint:backend:dry": "prettier --check \"server/**/*.ts\" && pnpm run lint:eslint:dry",
"lint:eslint": "eslint server --fix",
"lint:eslint:dry": "eslint server",
"lint:database": "prettier --write \"database/seeds/**/*.ts\" > /dev/null",
"lint:database:dry": "prettier --check \"database/seeds/**/*.ts\"",
"lint:sql": "./bin/lint_sql.sh server database/migrations database/seed-updates database/seeds",
"lint:sql:check": "./bin/lint_sql_check.sh server database/migrations database/seed-updates database/seeds",
"lint:sql:manual": "pg-formatter --keyword-case=\"uppercase\" --inplace --placeholder=\":\\w+!\"",
"lint:write": "pnpm run lint:backend && pnpm run lint:sql",
"test": "pnpm run test:backend",
"test:backend": "jest -c jest.config.server.js --group=-email --max_old_space_size=1536 --maxWorkers=3",
"test:backend:coverage": "jest -c jest.config.server.js --coverage --group=-email --max_old_space_size=1536 --maxWorkers=3",
"test:backend:debug": "jest -c jest.config.server.js --logHeapUsage --detectOpenHandles --group=-email",
"test:backend:full": "jest -c jest.config.server.js --detectOpenHandles --silent",
"test:backend:watch": "jest -c jest.config.server.js --watch --runInBand --detectOpenHandles --group=-email --group=-database",
"test:database:parallel": "jest --group=database/parallel -c jest.config.database.js --max_old_space_size=1536 --maxWorkers=3",
"test:database:sequential": "jest --group=database/sequential -c jest.config.database.js --max_old_space_size=1536 --runInBand",
"test:database": "pnpm run test:database:parallel && pnpm run test:database:sequential",
"test:integration:live": "op run --env-file=./.env.integration.op -- doppler run -- jest -c jest.config.integration.js --runInBand",
"pgtyped": "pgtyped -w -c pgtyped.config.json",
"pgtyped:seeds": "pgtyped --config database/seeds/pgtyped.config.json --watch",
"pgtyped:check": "./bin/pgtyped_check.sh",
"db:reset": "./bin/reset_db.sh",
"db:schema": "PGPASSFILE=\"database/.pgpass\" psql -w -h \"${PGHOST:-localhost}\" -p \"${PGPORT:-5432}\" -d upchieve -U admin -f \"database/db_init/schema.sql\" > /dev/null",
"db:auth": "PGPASSFILE=\"database/.pgpass\" psql -w -h \"${PGHOST:-localhost}\" -p \"${PGPORT:-5432}\" -d upchieve -U admin -f \"database/db_init/auth.sql\" > /dev/null",
"db:seeds": "PGPASSFILE=\"database/.pgpass\" psql -w -h \"${PGHOST:-localhost}\" -p \"${PGPORT:-5432}\" -d upchieve -U admin -f \"database/db_init/test_seeds.sql\" -f \"database/db_init/seed_migrations.sql\" > /dev/null",
"db:reset-schema": "pnpm run db:reset && pnpm run db:schema && pnpm run db:auth",
"db:reset-seeds": "pnpm run db:reset-schema && pnpm run db:seeds",
"db:build-seeds": "pnpm run db:reset-schema && ./bin/build_static_seeds.sh 100",
"db:dump": "dbmate --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"schema_migrations\" -s \"./database/db_init/schema.sql\" dump && PGPASSFILE=\"database/.pgpass\" pg_dump -a -f database/db_init/test_seeds.sql -n upchieve -h \"${PGHOST:-localhost}\" -p \"${PGPORT:-5432}\" -U admin upchieve && PGPASSFILE=\"database/.pgpass\" pg_dump -a -f \"database/db_init/seed_migrations.sql\" -t seed_migrations -h \"${PGHOST:-localhost}\" -p \"${PGPORT:-5432}\" -U admin upchieve",
"db:schema-new": "dbmate -d \"./database/migrations\" --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"schema_migrations\" new",
"db:seeds-new": "dbmate -d \"./database/seed-updates\" --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"seed_migrations\" new",
"db:schema-up": "dbmate --no-dump-schema -d \"./database/migrations\" --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"schema_migrations\" up",
"db:schema-down": "dbmate --no-dump-schema -d \"./database/migrations\" --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"schema_migrations\" down",
"db:seeds-up": "dbmate --no-dump-schema -d \"./database/seed-updates\" --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"seed_migrations\" up",
"db:seeds-down": "dbmate --no-dump-schema -d \"./database/seed-updates\" --url=\"postgres://admin:Password123@${PGHOST:-localhost}:${PGPORT:-5432}/upchieve?sslmode=disable\" --migrations-table=\"seed_migrations\" down",
"secrets:setup": "./bin/secret_detection.sh pull",
"secrets:check": "./bin/secret_detection.sh check-branch",
"secrets:check:staged": "./bin/secret_detection.sh check-staged",
"check:socket-address": "./bin/check_socket_address.sh"
},
"pre-commit": [
"pgtyped:check",
"lint:backend:dry",
"lint:database:dry",
"lint:sql:check",
"check:socket-address"
],
"pre-push": [
"secrets:check"
],
"dependencies": {
"@anthropic-ai/foundry-sdk": "^0.4.5",
"@aws-sdk/client-bedrock-runtime": "^3.981.0",
"@aws-sdk/client-chime-sdk-media-pipelines": "^3.777.0",
"@aws-sdk/client-chime-sdk-meetings": "^3.731.1",
"@aws-sdk/client-comprehend": "^3.726.1",
"@aws-sdk/client-rekognition": "^3.726.0",
"@aws-sdk/client-s3": "^3.965.0",
"@aws-sdk/client-transcribe-streaming": "^3.744.0",
"@aws-sdk/s3-request-presigner": "^3.965.0",
"@azure-rest/ai-content-safety": "^1.0.0",
"@azure/core-auth": "^1.7.2",
"@azure/identity": "^4.13.1",
"@azure/storage-blob": "^12.12.0",
"@pgtyped/runtime": "^2.4.2",
"@sendgrid/mail": "^8.1.6",
"@sentry/node": "^10.33.0",
"@sentry/profiling-node": "^10.33.0",
"@sesamecare-oss/redlock": "^1.4.0",
"@socket.io/admin-ui": "^0.5.1",
"@socket.io/redis-streams-adapter": "^0.2.2",
"@upchieve/api-contracts": "workspace:*",
"axios": "^1.15.2",
"base64url": "^3.0.1",
"bcrypt": "^6.0.0",
"bull": "^3.13.0",
"canvas": "^3.2.3",
"case": "^1.6.3",
"connect-pg-simple": "^7.0.0",
"connect-timeout": "^1.9.1",
"cookie-parser": "^1.4.7",
"cors": "^2.8.6",
"csv-parse": "^5.5.6",
"disposable-email-domains-js": "^1.22.0",
"engine.io": "6.6.5",
"exceljs": "^4.2.1",
"exponential-backoff": "^3.1.0",
"express": "^5.1.0",
"express-cache-controller": "^1.1.0",
"express-session": "^1.14.2",
"express-ws": "^5.0.2",
"fast-jwt": "^6.3.6",
"file-type-mime": "^0.4.7",
"firebase-admin": "^14.5.0",
"google-auth-library": "^9.15.1",
"google-spreadsheet": "^4.1.4",
"id128": "^1.6.6",
"ioredis": "^5.8.1",
"langfuse": "^3.11.2",
"langfuse-core": "^3.11.2",
"langfuse-node": "^3.11.2",
"lodash": "^4.17.19",
"module-from-string": "^3.3.1",
"moment": "^2.30.1",
"moment-timezone": "^0.5.33",
"multer": "^2.1.1",
"newrelic": "^13.6.4",
"notp": "^2.0.3",
"openai": "^6.17.0",
"passport": "^0.7.0",
"passport-google-oidc": "^0.1.0",
"passport-local": "^1.0.0",
"passport-oauth2": "^1.8.0",
"pg": "^8.7.3",
"pino": "^8.5.0",
"pino-http": "^8.2.0",
"posthog-node": "^4.0.0",
"quill-delta": "^4.2.2",
"sharp": "^0.33.3",
"socket.io": "^4.7.5",
"swagger-ui-express": "^4.1.6",
"thirty-two": "^1.0.2",
"tremendous": "^3.8.0",
"ts-custom-error": "^3.2.0",
"twilio": "^6.2.0",
"ua-parser-js": "^2.0.10",
"unpdf": "^1.6.2",
"uuid": "^8.3.2",
"validator": "^13.15.35",
"ws": "^8.20.1",
"yaml": "^1.10.0",
"yjs": "^13.6.11"
},
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@pgtyped/cli": "^2.3.0",
"@pgtyped/query": "^2.3.0",
"@types/bcrypt": "^5.0.2",
"@types/bull": "^3.12.2",
"@types/connect-pg-simple": "^7.0.0",
"@types/connect-timeout": "0.0.34",
"@types/cookie-parser": "^1.4.2",
"@types/cors": "^2.8.6",
"@types/express": "^5.0.5",
"@types/express-session": "^1.17.3",
"@types/express-ws": "^3.0.6",
"@types/jest": "^29.5.11",
"@types/lodash": "^4.17.25",
"@types/multer": "^1.4.7",
"@types/newrelic": "^9.14.8",
"@types/node": "^24.10.4",
"@types/notp": "^2.0.5",
"@types/passport": "^1.0.17",
"@types/passport-local": "^1.0.34",
"@types/passport-oauth2": "^1.4.15",
"@types/pg": "^8.6.4",
"@types/supertest": "^2.0.9",
"@types/swagger-ui-express": "^4.1.2",
"@types/uuid": "^8.3.1",
"@types/validator": "^13.6.3",
"@types/ws": "^8.18.1",
"dotenv": "^16.3.1",
"eslint": "^10.11.0",
"ioredis-mock": "^8.13.1",
"jest": "^29.7.0",
"jest-express": "^1.12.0",
"jest-mock": "^29.7.0",
"jest-runner-groups": "^2.2.0",
"pg-formatter": "^1.3.0",
"pino-pretty": "^10.3.1",
"prettier": "^3.5.3",
"supertest": "^4.0.2",
"ts-jest": "^29.4.12",
"ts-node": "^8.9.0",
"ts-node-dev": "^1.1.6",
"type-fest": "^2.12.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.71.0"
},
"engines": {
"node": "~24.22.3",
"pnpm": ">=11.1.3 <12"
},
"packageManager": "pnpm@11.1.3"
}