-
Notifications
You must be signed in to change notification settings - Fork 84
/
package.json
252 lines (252 loc) · 8.93 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
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
{
"name": "FormSG",
"description": "Form Manager for Government",
"version": "6.165.0",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <[email protected]>"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/opengovsg/formsg.git"
},
"engines": {
"node": ">=18",
"npm": ">=8"
},
"scriptComments": {
"clean": "remove all current build artifacts",
"copyfiles:backend": [
"copies additional file types that tsc does not cover, such as server `.html` view files",
"-e command excludes the old angularjs files",
"-u 1 moves the files relative to the output directory"
]
},
"scripts": {
"postinstall": "npm run postinstall:frontend && npm run postinstall:shared",
"test": "npm run test:backend && npm run test:frontend",
"test:backend": "env-cmd -f __tests__/setup/.test-env node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:backend:ci": "env-cmd -f __tests__/setup/.test-env node --experimental-vm-modules node_modules/jest/bin/jest.js --maxWorkers=2 --logHeapUsage --workerIdleMemoryLimit=0.2",
"test:backend:watch": "env-cmd -f __tests__/setup/.test-env node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
"test:frontend": "npm --prefix frontend test",
"test:e2e-v2": "npm run build && npx playwright test",
"test:e2e-v2:server": "env-cmd -f ./__tests__/setup/.test-env npm run test-e2e-server",
"test-e2e-server": "concurrently --success last --kill-others \"mockpass\" \"maildev\" \"node dist/backend/src/app/server.js\" \"node ./__tests__/setup/mock-webhook-server.js\"",
"build": "npm run clean && concurrently \"npm:build:*\"",
"build:frontend": "npm run --prefix frontend build",
"build:backend": "tsc -p tsconfig.build.json && npm run copyfiles:backend",
"copyfiles:backend": "copyfiles -u 1 src/**/*.html dist/backend/src",
"clean": "rimraf dist/",
"start": "node -r dotenv/config src/app/server.js",
"dev": "concurrently -k -p \"[{name}]\" -n \"api,client,virus-scanner\" -c \"yellow.bold,green.bold,blue.bold\" \"docker-compose up\" \"npm run dev:frontend\" \"npm --prefix serverless/virus-scanner run dev\"",
"dev:backend": "tsnd --poll --respawn --transpile-only --inspect=0.0.0.0 --exit-child -r dotenv/config -- src/app/server.ts",
"dev:virus-scanner": "concurrently -k -p \"[{name}]\" -n \"api,virus-scanner\" -c \"yellow.bold,blue.bold\" \"docker-compose up\" \"npm --prefix serverless/virus-scanner run dev\"",
"dev:frontend": "npm run --prefix frontend start",
"lint": "eslint src/ shared/ --quiet --fix",
"lint:shared": "eslint shared/ --quiet --fix",
"lint:frontend": "npm run --prefix frontend lint",
"lint-ci": "eslint src/ shared/ --quiet",
"version": "auto-changelog -p && git add CHANGELOG.md",
"prepare": "husky",
"pre-commit": "lint-staged",
"storybook": "npm run --prefix frontend storybook",
"postinstall:frontend": "npm --prefix frontend install",
"postinstall:shared": "npm --prefix shared install"
},
"dependencies": {
"@aws-sdk/client-cloudwatch-logs": "^3.536.0",
"@aws-sdk/client-lambda": "^3.693.0",
"@babel/runtime": "^7.24.7",
"@faker-js/faker": "^8.4.1",
"@growthbook/growthbook": "^1.1.0",
"@joi/date": "^2.1.1",
"@opengovsg/formsg-sdk": "^0.12.0-alpha.1",
"@opengovsg/myinfo-gov-client": "^4.1.2",
"@opengovsg/sgid-client": "^2.2.0",
"@react-email/components": "^0.0.26",
"@react-email/render": "^1.0.2",
"@stablelib/base64": "^1.0.1",
"aws-info": "^1.2.0",
"aws-sdk": "^2.1691.0",
"axios": "^1.7.7",
"bcrypt": "^5.1.1",
"bluebird": "^3.5.2",
"body-parser": "^1.20.3",
"boxicons": "1.8.0",
"bson": "^4.7.2",
"busboy": "^1.6.0",
"celebrate": "^15.0.3",
"compression": "~1.7.2",
"connect-datadog": "0.0.9",
"connect-mongo": "^4.6.0",
"convict": "^6.2.4",
"convict-format-with-validator": "^6.2.0",
"cookie-parser": "~1.4.6",
"csv-string": "^4.1.1",
"cuid": "^2.1.8",
"date-fns": "^3.6.0",
"dd-trace": "^5.22.0",
"dedent-js": "~1.0.1",
"dotenv": "^16.4.5",
"ejs": "^3.1.10",
"express": "^4.21.1",
"express-rate-limit": "^7.4.1",
"express-request-id": "^1.4.1",
"express-session": "^1.18.0",
"express-winston": "^4.2.0",
"file-saver": "^2.0.5",
"fp-ts": "^2.16.8",
"helmet": "^7.1.0",
"hot-shots": "^10.1.1",
"html-entities": "^2.5.2",
"html-escaper": "^3.0.3",
"http-errors": "^2.0.0",
"http-status-codes": "^2.3.0",
"intl-tel-input": "~12.4.0",
"ip": "^1.1.9",
"jose": "^5.9.6",
"jsdom": "^25.0.1",
"json-stringify-safe": "^5.0.1",
"JSONStream": "^1.3.5",
"jsonwebtoken": "^9.0.2",
"jszip": "^3.10.1",
"jwk-to-pem": "^2.0.6",
"libphonenumber-js": "^1.10.59",
"lodash": "^4.17.21",
"moment-timezone": "0.5.41",
"mongodb-memory-server-core": "^9.1.7",
"mongodb-uri": "^0.9.7",
"mongoose": "^6.12.0",
"multer": "^1.4.5-lts.1",
"multiparty": ">=4.2.3",
"nan": "^2.19.0",
"neverthrow": "^8.0.0",
"nocache": "^3.0.4",
"node-cache": "^5.1.2",
"nodemailer": "^6.9.16",
"openai": "^4.70.3",
"openid-client": "^5.3.1",
"opossum": "^8.1.4",
"promise-retry": "^2.0.1",
"promise-timeout": "^1.3.0",
"puppeteer-core": "22.6.3",
"react": "^18.3.0",
"react-dom": "^18.3.1",
"react-email": "^3.0.2",
"slick-carousel": "1.8.1",
"sns-validator": "^0.3.5",
"spark-md5": "^3.0.2",
"sqs-consumer": "^5.7.0",
"sqs-producer": "^2.1.0",
"stripe": "^12.5.0",
"text-encoding": "^0.7.0",
"triple-beam": "^1.3.0",
"ts-essentials": "^10.0.1",
"tweetnacl": "^1.0.1",
"tweetnacl-util": "^0.15.1",
"twilio": "~4.19.3",
"uid-generator": "^2.0.0",
"ulid": "^2.3.0",
"uuid": "^10.0.0",
"uuid-by-string": "^4.0.0",
"validator": "^13.12.0",
"winston": "^3.13.0",
"winston-cloudwatch": "^6.2.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@babel/core": "^7.24.3",
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.25.4",
"@opengovsg/mockpass": "^4.3.4",
"@playwright/test": "^1.49.0",
"@stoplight/prism-cli": "^5.10.0",
"@types/bcrypt": "^5.0.0",
"@types/bluebird": "^3.5.42",
"@types/busboy": "^1.5.4",
"@types/compression": "^1.7.5",
"@types/connect-datadog": "0.0.6",
"@types/convict": "^6.1.6",
"@types/cookie-parser": "^1.4.7",
"@types/dedent": "^0.7.2",
"@types/ejs": "^3.1.5",
"@types/express": "^4.17.21",
"@types/express-request-id": "^1.4.3",
"@types/express-session": "^1.18.0",
"@types/helmet": "4.0.0",
"@types/html-escaper": "^3.0.2",
"@types/http-errors": "^2.0.4",
"@types/ip": "^1.1.0",
"@types/jest": "^29.5.1",
"@types/json-stringify-safe": "^5.0.3",
"@types/jsonfile": "^6.1.1",
"@types/jsonwebtoken": "^9.0.7",
"@types/jwk-to-pem": "^2.0.3",
"@types/lodash": "^4.17.6",
"@types/mongodb-uri": "^0.9.4",
"@types/multer": "^1.4.11",
"@types/node": "^14.18.23",
"@types/nodemailer": "^6.4.16",
"@types/opossum": "^8.1.7",
"@types/promise-retry": "^1.1.6",
"@types/promise-timeout": "^1.3.3",
"@types/puppeteer-core": "^5.4.0",
"@types/react": "^18.3.12",
"@types/sns-validator": "^0.3.3",
"@types/spark-md5": "^3.0.2",
"@types/supertest": "^2.0.12",
"@types/triple-beam": "^1.3.2",
"@types/uid-generator": "^2.0.6",
"@types/uuid": "^10.0.0",
"@types/validator": "^13.12.0",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"auto-changelog": "^2.4.0",
"axios-mock-adapter": "^1.22.0",
"concurrently": "^7.6.0",
"copyfiles": "^2.4.1",
"env-cmd": "^10.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-playwright": "^1.6.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-typesafe": "^0.5.2",
"form-data": "^4.0.0",
"htmlhint": "^1.1.4",
"husky": "^9.1.6",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-extended": "^4.0.2",
"lint-staged": "^15.2.10",
"maildev": "^2.1.0",
"mockdate": "^3.0.5",
"prettier": "^3.3.3",
"regenerator": "^0.14.10",
"rimraf": "^5.0.5",
"stripe-event-types": "^3.1.0",
"supertest": "^6.3.3",
"supertest-session": "^5.0.1",
"ts-jest": "^29.2.5",
"ts-loader": "^8.2.0",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"type-fest": "^4.17.0",
"typescript": "^5.4.5",
"webpack": "^4.46.0",
"webpack-cli": "^4.10.0",
"worker-loader": "^2.0.0"
},
"config": {
"//": [
"This is required for the mongodb binary to be downloaded on M1 macs",
"to run the test suite, since mongo does not have an arm image."
],
"mongodbMemoryServer": {
"arch": "x64"
}
}
}