-
Notifications
You must be signed in to change notification settings - Fork 117
/
package.json
368 lines (368 loc) · 16.6 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
{
"name": "lesswrong",
"version": "2.1.0",
"scripts": {
"postinstall": "scripts/postinstall.sh",
"checktypes": "scripts/lint_and_checktypes.sh",
"lint": "scripts/lint_and_checktypes.sh",
"acceptmigrations": "ts-node -r tsconfig-paths/register scripts/acceptmigrations || git diff --no-index schema/accepted_schema.sql schema/schema_to_accept.sql",
"makemigrations": "ts-node -r tsconfig-paths/register scripts/makemigrations",
"tsc": "tsc --noEmit --skipLibCheck",
"eslint": "eslint --max-warnings 0 --cache --ext .jsx,js,tsx,ts packages",
"build": "./build.js",
"migrate": "node -r tsconfig-paths/register migrate",
"upload-ckeditor-bundle": "node -r tsconfig-paths/register deployCkEditorBundle",
"branchdb": "ts-node -r tsconfig-paths/register scripts/branchDb.ts",
"start": "yarn start-local-db",
"start-local-db": "./build.js -run --watch --lint --settings settings-dev.json",
"start-dev-db": "./build.js --no-clear -run --watch --lint --db ../LessWrong-Credentials/connectionConfigs/dev.json --settings ../LessWrong-Credentials/settings-local-dev-devdb.json",
"start-prod-db": "./build.js --no-clear -run --watch --lint --db ../LessWrong-Credentials/connectionConfigs/prod.json --settings ../LessWrong-Credentials/settings-local-dev-proddb.json",
"lw-start-local-db": "./build.js --no-clear -run --watch --lint --db ../LessWrong-Credentials/connectionConfigs/local.json --settings settings.json",
"shell": "./build.js --no-clear -run --settings settings.json --shell",
"shell-dev-db": "./build.js --no-clear -run --db ../LessWrong-Credentials/connectionConfigs/dev.json --settings ../LessWrong-Credentials/settings-local-dev-devdb.json --shell",
"shell-prod-db": "./build.js --no-clear -run --db ../LessWrong-Credentials/connectionConfigs/prod.json --settings ../LessWrong-Credentials/settings-local-dev-proddb.json --shell",
"start-af": "./build.js --no-clear -run --watch --lint --settings settings-af.json",
"start-af-dev-db": "./build.js --no-clear -run --watch --lint --db ../LessWrong-Credentials/connectionConfigs/dev.json --settings ../LessWrong-Credentials/settings-local-dev-af-devdb.json",
"start-af-prod-db": "./build.js --no-clear -run --watch --lint --db ../LessWrong-Credentials/connectionConfigs/prod.json --settings ../LessWrong-Credentials/settings-local-dev-af-proddb.json",
"unit": "jest --config jest.unit.config.ts --forceExit",
"unit-ci": "jest --config jest.unit.config.ts --forceExit --ci --coverage",
"unit-watch": "jest --config jest.unit.config.ts --watchAll",
"unit-coverage": "jest --config jest.unit.config.ts --forceExit --coverage",
"exec-accepted-schema": "psql $PG_URL -f ./schema/accepted_schema.sql",
"create-integration-db": "PG_URL=$(cat ../ForumCredentials/testing-pg-conn.txt) ./scripts/createIntegrationPgDb.sh",
"create-integration-db-ci": "yarn exec-accepted-schema && ./scripts/createIntegrationPgDb.sh",
"integration": "PG_URL=$(cat ../ForumCredentials/testing-pg-conn.txt) PG_MAX_CONNECTIONS=5 jest --config jest.integration.config.ts --forceExit",
"integration-ci": "PG_MAX_CONNECTIONS=5 jest --config jest.integration.config.ts --forceExit --ci --coverage",
"integration-watch": "jest --config jest.integration.config.ts --watchAll",
"integration-coverage": "jest --config jest.integration.config.ts --forceExit --coverage",
"combine-coverage": "./scripts/combineCoverage.sh",
"encrypt-credentials": "tar czf credentials.tar.gz --exclude '.git/*' -C ../ ./LessWrong-Credentials; travis encrypt-file credentials.tar.gz --add; rm credentials.tar.gz",
"generate": "scripts/generateTypes.sh",
"rebuild-ckeditor": "cd ./public/lesswrong-editor && yarn install && yarn run build",
"production": "scripts/runProduction.sh",
"deploy": "scripts/deploy.sh",
"ea-command-dev": "./build.js -run --settings ../ForumCredentials/settings-dev.json --postgresUrlFile ../ForumCredentials/dev-pg-conn.txt --command",
"ea-command-staging-db": "./build.js -run --settings ../ForumCredentials/settings-dev.json --postgresUrlFile ../ForumCredentials/dev-pg-conn.txt --command",
"ea-command-prod-db": "./build.js -run --settings ../ForumCredentials/settings-dev.json --postgresUrlFile ../ForumCredentials/dev-pg-conn.txt --command",
"ea-command-testing": "./build.js -run --settings ../ForumCredentials/settings-dev.json --postgresUrlFile ../ForumCredentials/testing-pg-conn.txt --command",
"ea-command-ci": "./build.js -run --settings ./settings-test.json --postgresUrl $PG_URL --command",
"ea-start": "./build.js -run -watch --lint --settings ../ForumCredentials/settings-dev.json --postgresUrlFile ../ForumCredentials/dev-pg-conn.txt",
"ea-start-xpost-dev": "PORT=4000 ./build.js -run -watch --lint --settings ../ForumCredentials/settings-xpost.json --postgresUrlFile ../ForumCredentials/xpost-pg-conn.txt",
"playwright-db": "docker run --rm --name forum-magnum-test-postgres -e POSTGRES_PASSWORD=password -p 5433:5432 -v $PWD/schema/accepted_schema.sql:/docker-entrypoint-initdb.d/00_accepted_schema.sql ankane/pgvector",
"playwright-test": "playwright test",
"start-playwright": "PORT=3456 ./build.js -run --watch --e2e --settings ./settings-test.json --postgresUrl postgres://postgres:password@localhost:5433/postgres",
"ea-start-staging-db": "./build.js -run --watch --lint --settings ../ForumCredentials/settings-local-dev-staging-db.json --postgresUrlFile ../ForumCredentials/staging-pg-conn.txt",
"ea-start-prod-db": "./build.js -run --watch --lint --settings ../ForumCredentials/settings-local-dev-prod-db.json --postgresUrlFile ../ForumCredentials/prod-pg-conn.txt",
"ea-start-testing-db": "./build.js -run --watch --e2e --settings ./settings-test.json --postgresUrl ${PG_URL:=$(cat ../ForumCredentials/testing-pg-conn.txt)}",
"ea-pg": "psql $(< ../ForumCredentials/dev-pg-conn.txt)",
"ea-pg-xpost-dev": "psql $(< ../ForumCredentials/xpost-pg-conn.txt)",
"ea-pg-staging": "psql $(< ../ForumCredentials/staging-pg-conn.txt)",
"ea-pg-testing": "psql $(< ../ForumCredentials/testing-pg-conn.txt)",
"ea-pg-prod": "psql $(< ../ForumCredentials/prod-pg-conn.txt)",
"ea-pg-dev-admin": "psql $(< ../ForumCredentials/dev-staging-admin-pg-conn.txt)",
"ea-pg-prod-admin": "psql $(< ../ForumCredentials/prod-admin-pg-conn.txt)",
"ea-load-dev-db": "ts-node -r tsconfig-paths/register ./scripts/loadDbSettings.ts dev",
"ea-load-xpost-dev-db": "ts-node -r tsconfig-paths/register ./scripts/loadDbSettings.ts xpost",
"ea-load-staging-db": "ts-node -r tsconfig-paths/register ./scripts/loadDbSettings.ts staging",
"ea-load-prod-db": "node -r tsconfig-paths/register ../ForumCredentials/assertSafeToUpdateDbSettings.js && ts-node -r tsconfig-paths/register ./scripts/loadDbSettings.ts prod",
"ea-load-testing-db": "ts-node -r tsconfig-paths/register ./scripts/loadDbSettings.ts testing",
"ea-replicate-dev-db": "./scripts/eaReplicateDevDb.sh",
"generate-client-stats": "esbuild-visualizer --metadata ./client_meta.json --filename client_stats.html",
"brigader-check": "ts-node -r tsconfig-paths/register scripts/brigaderCheck.ts"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.5.4",
"@apollo/client": "^3.2.0",
"@aws-sdk/client-cloudfront": "^3.577.0",
"@babel/runtime": "^7.12.1",
"@centreforeffectivealtruism/umzug": "^3.2.1",
"@datadog/browser-rum": "^5.18.0",
"@dqbd/tiktoken": "^1.0.7",
"@elastic/elasticsearch": "^8.7.0",
"@google-cloud/discoveryengine": "^1.4.1",
"@googleapis/drive": "^8.7.0",
"@googleapis/oauth2": "^1.0.5",
"@googlemaps/google-maps-services-js": "^3.1.13",
"@heroicons/react": "^2.0.16",
"@material-ui/core": "3.1.2",
"@material-ui/icons": "^3.0.0",
"@material-ui/lab": "^3.0.0-alpha.30",
"@popperjs/core": "^2.11.5",
"@sentry/browser": "^5.12.4",
"@sentry/core": "^5.12.4",
"@sentry/integrations": "^5.12.4",
"@sentry/node": "^5.12.4",
"@std/esm": "^0.26.0",
"@stripe/stripe-js": "^1.11.0",
"@testing-library/react-hooks": "^7.0.2",
"@types/algoliasearch": "^3.34.11",
"@types/auth0": "^2.35.2",
"@types/bcrypt": "^3.0.0",
"@types/chai-as-promised": "^7.1.2",
"@types/cheerio": "^0.22.28",
"@types/classnames": "^2.2.9",
"@types/cookie-parser": "^1.4.2",
"@types/crypto-js": "^3.1.44",
"@types/diff-match-patch": "^1.0.34",
"@types/draft-convert": "^2.1.1",
"@types/draft-js": "^0.10.40",
"@types/enzyme": "^3.10.5",
"@types/express": "4.17.14",
"@types/express-session": "^1.17.3",
"@types/gapi": "0.0.39",
"@types/google__maps": "^0.5.14",
"@types/graphql-type-json": "^0.3.2",
"@types/html-to-text": "^9.0.0",
"@types/htmlparser2": "^3.10.1",
"@types/intercom-client": "^2.11.10",
"@types/jest": "^26.0.19",
"@types/jsdom": "^16.2.1",
"@types/jsonwebtoken": "^8.3.9",
"@types/later": "^1.2.6",
"@types/lodash": "^4.14.150",
"@types/lolex": "^5.1.0",
"@types/lru-cache": "^5.1.0",
"@types/markdown-it": "^12.0.1",
"@types/markdown-it-container": "^2.0.3",
"@types/md5": "^2.3.2",
"@types/mocha": "^5.2.7",
"@types/moment": "^2.13.0",
"@types/mz": "^2.7.3",
"@types/node": "18.11.0",
"@types/nodemailer": "^6.4.1",
"@types/papaparse": "^5.0.3",
"@types/passport": "^1.0.6",
"@types/passport-auth0": "^1.0.4",
"@types/passport-facebook": "^2.1.10",
"@types/passport-github2": "^1.2.4",
"@types/passport-google-oauth20": "^2.0.6",
"@types/passport-strategy": "^0.2.35",
"@types/pg": "^7.14.3",
"@types/qs": "6.9.1",
"@types/react": "^18.0.0",
"@types/react-autosuggest": "^9.3.13",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^18.2.0",
"@types/react-geosuggest": "^2.7.10",
"@types/react-helmet": "^5.0.15",
"@types/react-instantsearch": "^6.10.4",
"@types/react-instantsearch-dom": "^6.10.4",
"@types/react-map-gl": "^5.2.2",
"@types/react-no-ssr": "^1.1.1",
"@types/react-router": "^5.1.13",
"@types/react-router-dom": "^5.1.13",
"@types/recompose": "^0.30.7",
"@types/request": "^2.48.5",
"@types/rss": "^0.0.28",
"@types/sanitize-html": "^1.22.0",
"@types/simpl-schema": "^1.10.4",
"@types/speakingurl": "^13.0.2",
"@types/turndown": "^5.0.0",
"@types/underscore": "1.9.4",
"@types/uuid": "^7.0.2",
"akismet-api": "^4.2.0",
"algoliasearch": "^3.29.0",
"apollo-errors": "^1.9.0",
"apollo-server": "2.25.4",
"apollo-server-express": "2.15.0",
"auth0": "^2.42.0",
"bcrypt": "^5.0.1",
"bowser": "^1.9.4",
"cheerio": "1.0.0-rc.9",
"chokidar": "^3.5.0",
"classnames": "^2.2.6",
"cloudinary": "^1.23.0",
"cloudinary-core": "2.5.0",
"cloudinary-react": "1.0.6",
"compression": "^1.7.3",
"cookie-parser": "^1.4.3",
"crypto-js": "^4.2.0",
"csso": "^5.0.5",
"dataloader": "^2.2.2",
"dd-trace": "^3.5.0",
"deepmerge": "^1.2.0",
"diff-match-patch": "^1.0.5",
"draft-convert": "^2.1.2",
"draft-js": "^0.10.4",
"draft-js-alignment-plugin": "2.0.6",
"draft-js-anchor-plugin": "^2.0.2",
"draft-js-block-breakout-plugin": "^2.0.1",
"draft-js-buttons": "2.0.1",
"draft-js-divider-plugin": "^0.1.1",
"draft-js-focus-plugin": "^2.1.0",
"draft-js-image-plugin": "^2.0.5",
"draft-js-inline-toolbar-plugin": "^2.0.3",
"draft-js-linkify-plugin": "^2.0.0-rc8",
"draft-js-markdown-shortcuts-plugin": "^0.3.0",
"draft-js-mathjax-plugin": "^1.3.4",
"draft-js-plugins-editor": "^2.1.1",
"draft-js-resizeable-plugin": "^2.0.6",
"draft-js-richbuttons-plugin": "^2.1.0",
"element-closest": "^2.0.2",
"enzyme": "3.1.0",
"escape-string-regexp": "^1.0.5",
"estrella": "1.4.1",
"express": "5.0.0-alpha.8",
"express-session": "^1.17.1",
"feedparser-promised": "^1.2.2",
"fp-ts": "^2.13.1",
"google-auth-library": "^9.6.3",
"gpt-3-encoder": "^1.1.3",
"graphql": "^14.5.8",
"graphql-server-express": "^0.6.0",
"graphql-tag": "^2.9.2",
"graphql-tools": "^4.0.7",
"graphql-type-json": "^0.1.4",
"graphql-voyager": "^1.0.0-rc.26",
"he": "^1.1.1",
"hepburn": "^1.2.0",
"hot-shots": "^10.0.0",
"html-lexer": "^0.4.1",
"html-to-text": "^9.0.3",
"htmlparser2": "^3.9.2",
"intercom-client": "^2.10.2",
"intl": "^1.2.4",
"io-ts": "^2.2.19",
"jsdom": "^16.5.0",
"json-stringify-deterministic": "^1.0.8",
"jsonwebtoken": "^9.0.0",
"juice": "^7.0.0",
"later": "^1.2.0",
"linkedom": "^0.16.11",
"logrocket": "^1.0.0",
"lolex": "^3.0.0",
"lru-cache": "^5.1.1",
"mapbox-gl": "1.3.1",
"markdown-it": "^12.3.2",
"markdown-it-container": "^2.0.0",
"markdown-it-footnote": "^3.0.1",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"mathjax": "^2.7.5",
"mathjax-node": "^2.1.1",
"mathjax-node-page": "3.2.0",
"md5": "^2.3.0",
"mingo": "^2.2.11",
"moment": "^2.29.4",
"mz": "^2.7.0",
"node-abort-controller": "^3.1.1",
"nodemailer": "^6.9.9",
"openai": "^4.18.0",
"papaparse": "^5.2.0",
"passport": "^0.5.2",
"passport-auth0": "^1.4.0",
"passport-custom": "^1.1.1",
"passport-facebook": "^3.0.0",
"passport-github2": "^0.1.12",
"passport-google-oauth20": "^2.0.0",
"passport-local": "^1.0.0",
"passport-oauth2": "^1.6.1",
"path-to-regexp": "^1.2.0",
"pg": "^8.11.0",
"pg-promise": "^11.5.0",
"prop-types": "^15.7.2",
"qs": "6.7.3",
"raf": "3.4.1",
"react": "^18.2.0",
"react-autosuggest": "^9.4.0",
"react-bootstrap": "1.0.0-beta.14",
"react-confetti": "^6.1.0",
"react-cookie": "^4.0.1",
"react-copy-to-clipboard": "^5.1.0",
"react-datetime": "^2.15.0",
"react-dom": "^18.2.0",
"react-geosuggest": "^2.8.0",
"react-helmet": "^6.1.0",
"react-instantsearch": "6.40.4",
"react-instantsearch-core": "6.40.4",
"react-instantsearch-dom": "6.40.4",
"react-jss": "^8.1.0",
"react-map-gl": "^5.2.9",
"react-no-ssr": "^1.1.0",
"react-popper": "^2.3.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"react-sortable-hoc": "^2.0.0",
"react-test-renderer": "^18.2.0",
"recharts": "^2.1.4",
"recombee-api-client": "^4.1.5",
"recombee-js-api-client": "^4.1.5",
"recompose": "^0.26.0",
"request": "^2.88.0",
"rss": "^1.2.1",
"sanitize-html": "^2.12.1",
"setimmediate": "^1.0.5",
"shallowequal": "^1.1.0",
"simpl-schema": "^1.5.0",
"source-map-support": "^0.5.19",
"speakingurl": "^9.0.0",
"stripe": "^8.126.0",
"tlds": "^1.203.1",
"turndown": "^4.0.2",
"turndown-plugin-gfm": "^1.0.2",
"type-fest": "^1.1.1",
"typescript": "^5.0.0",
"underscore": "^1.12.1",
"universal-cookie": "^4.0.2",
"universal-cookie-express": "^2.2.0",
"url": "^0.11.0",
"uuid": "^7.0.0",
"zod": "^3.22.3"
},
"devDependencies": {
"@babel/core": "7.12.3",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-optional-chaining": "^7.12.1",
"@babel/plugin-transform-react-jsx": "^7.12.11",
"@babel/plugin-transform-runtime": "7.11.5",
"@babel/preset-env": "7.11.5",
"@babel/preset-react": "7.10.4",
"@babel/preset-typescript": "^7.12.1",
"@ckeditor/ckeditor5-core": "^39.0.0",
"@ckeditor/ckeditor5-engine": "^39.0.0",
"@graphql-codegen/cli": "^1.9.1",
"@graphql-codegen/fragment-matcher": "^1.9.0",
"@graphql-codegen/introspection": "^1.9.0",
"@playwright/test": "^1.43.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^15.0.5",
"@types/csso": "^5.0.0",
"@types/hepburn": "^1.2.0",
"@types/raf": "^3.4.0",
"@types/react-html-parser": "^2.0.6",
"@types/shallowequal": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"babel-plugin-transform-class-properties": "^6.24.1",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.3",
"esbuild": "^0.15.7",
"esbuild-jest": "^0.5.0",
"esbuild-loader": "^2.6.1",
"esbuild-visualizer": "^0.6.0",
"eslint": "^8.41.0",
"eslint-config-ckeditor5": "^4.4.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^27.3.1",
"sql-formatter": "^15.3.1",
"ts-jest": "^27.0.7",
"ts-loader": "^8.0.5",
"tsconfig-paths": "^4.2.0"
},
"resolutions": {
"graphql": "^14.5.8",
"graphql-tools": "^4.0.7",
"ts-node": "^10.9.1",
"postgres-array": "^3.0.2",
"react": "^18.2.0",
"@types/react": "^18.2.0"
},
"engines": {
"node": "18.x"
}
}