forked from facebook/lexical
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
206 lines (206 loc) · 12 KB
/
package.json
File metadata and controls
206 lines (206 loc) · 12 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
{
"name": "@lexical/monorepo",
"description": "Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.",
"version": "0.41.0",
"license": "MIT",
"private": true,
"workspaces": [
"packages/*"
],
"engines": {
"node": ">=18.0.0 <23.0.0",
"pnpm": ">=9.0.0"
},
"engineStrict": true,
"scripts": {
"start:example": "sh -c '(cd \"examples/$0\"; pnpm i && pnpm run monorepo:dev)'",
"start": "cross-env NODE_ENV=development concurrently \"pnpm:collab\" \"pnpm -C packages/lexical-playground run dev\"",
"start:website": "pnpm -C packages/lexical-website run start --port 3001",
"start:playground": "pnpm run start-test-server",
"dev": "pnpm -C packages/lexical-playground run dev",
"start-test-server": "pnpm -C packages/lexical-playground run preview",
"build": "node scripts/build.js",
"build-prod": "pnpm run clean && pnpm run build --prod",
"build-docs": "pnpm -C packages/lexical-website run build",
"build-playground-dev": "pnpm run build && pnpm -C packages/lexical-playground run build-dev",
"build-playground-prod": "pnpm run build-prod && pnpm -C packages/lexical-playground run build-prod",
"build-release": "pnpm run build-prod --release --codes",
"build-www": "pnpm run clean && pnpm run build --www && pnpm run build --www --prod && pnpm run prepare-www",
"build-types": "tsc -p ./tsconfig.build.json && node ./scripts/validate-tsc-types.js",
"lint-flow": "node ./scripts/lint-flow-types.js",
"clean": "node scripts/clean.js",
"extract-codes": "node scripts/build.js --codes",
"flow": "node ./scripts/check-flow-types.js",
"flow-typed-install": "flow-typed install -s -o --ignoreDeps dev peer bundled",
"tsc": "tsc",
"tsc-extension": "pnpm --filter @lexical/devtools run compile",
"tsc-watch": "tsc -w",
"collab": "cross-env HOST=localhost PORT=1234 npx y-websocket",
"validation": "npx ts-node --cwdMode packages/lexical-playground/src/server/validation.ts",
"vitest": "vitest",
"test-unit": "vitest --project unit --project scripts-unit --no-watch",
"test-unit-watch": "vitest --project unit --project scripts-unit",
"test-eslint-integration": "node packages/lexical-eslint-plugin/__tests__/integration/integration-test.mjs",
"test-integration": "vitest --project integration --no-watch",
"test-e2e-chromium": "cross-env E2E_BROWSER=chromium playwright test --project=\"chromium\"",
"test-e2e-firefox": "cross-env E2E_BROWSER=firefox playwright test --project=\"firefox\"",
"test-e2e-webkit": "cross-env E2E_BROWSER=webkit playwright test --project=\"webkit\"",
"test-e2e-plain-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=plain-text playwright test --project=\"chromium\"",
"test-e2e-plain-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=plain-text playwright test --project=\"firefox\"",
"test-e2e-plain-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=plain-text playwright test --project=\"webkit\"",
"test-e2e-collab-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"chromium\"",
"test-e2e-collab-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"firefox\"",
"test-e2e-collab-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"webkit\"",
"test-e2e-collab-v2-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=rich-text-with-collab-v2 playwright test --project=\"chromium\"",
"test-e2e-collab-v2-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=rich-text-with-collab-v2 playwright test --project=\"firefox\"",
"test-e2e-collab-v2-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=rich-text-with-collab-v2 playwright test --project=\"webkit\"",
"test-e2e-prod-chromium": "cross-env E2E_BROWSER=chromium E2E_PORT=4000 playwright test --project=\"chromium\"",
"test-e2e-collab-prod-chromium": "cross-env E2E_BROWSER=chromium E2E_PORT=4000 E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"chromium\"",
"test-e2e-ci-chromium": "pnpm run prepare-ci && cross-env E2E_PORT=4000 pnpm run test-e2e-chromium --grep-invert \"@flaky\"",
"test-e2e-ci-firefox": "pnpm run prepare-ci && cross-env E2E_PORT=4000 pnpm run test-e2e-firefox --grep-invert \"@flaky\"",
"test-e2e-ci-webkit": "pnpm run prepare-ci && cross-env E2E_PORT=4000 pnpm run test-e2e-webkit --grep-invert \"@flaky\"",
"test-e2e-collab-ci-chromium": "pnpm run prepare-ci && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"pnpm run collab\" -P \"pnpm run test-e2e-collab-chromium --grep-invert '@flaky' {@}\"",
"test-e2e-collab-ci-firefox": "pnpm run prepare-ci && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"pnpm run collab\" -P \"pnpm run test-e2e-collab-firefox --grep-invert '@flaky' {@}\"",
"test-e2e-collab-ci-webkit": "pnpm run prepare-ci && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"pnpm run collab\" -P \"pnpm run test-e2e-collab-webkit --grep-invert '@flaky' {@}\"",
"test-e2e-prod-ci-chromium": "pnpm run prepare-ci-prod && cross-env E2E_PORT=4000 pnpm run test-e2e-prod-chromium --grep-invert \"@flaky\"",
"test-e2e-collab-prod-ci-chromium": "pnpm run prepare-ci-prod && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"pnpm run collab\" -P \"pnpm run test-e2e-collab-prod-chromium --grep-invert '@flaky' {@}\"",
"debug-run-all": "npm-run-all 'debug-test-e2e-* -- {1}' --",
"run-all": "npm-run-all 'test-e2e-* -- {1}' --",
"debug-test-e2e": "cross-env playwright test --debug",
"debug-test-e2e-chromium": "cross-env E2E_BROWSER=chromium playwright test --debug --project=\"chromium\"",
"debug-test-e2e-prod-chromium": "cross-env E2E_BROWSER=chromium E2E_PORT=4000 playwright test --debug --project=\"chromium\"",
"debug-test-e2e-firefox": "cross-env E2E_BROWSER=firefox playwright test --debug --project=\"firefox\"",
"debug-test-e2e-webkit": "cross-env E2E_BROWSER=webkit playwright test --debug --project=\"webkit\"",
"debug-test-e2e-collab": "cross-env E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug",
"debug-test-e2e-collab-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug --project=\"chromium\"",
"debug-test-e2e-collab-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug --project=\"firefox\"",
"debug-test-e2e-collab-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug --project=\"webkit\"",
"debug-test-e2e-plain": "cross-env E2E_EDITOR_MODE=plain-text playwright test --debug",
"debug-test-e2e-plain-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=plain-text playwright test --debug --project=\"chromium\"",
"debug-test-e2e-plain-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=plain-text playwright test --debug --project=\"firefox\"",
"debug-test-e2e-plain-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=plain-text playwright test --debug --project=\"webkit\"",
"debug-test-unit": "vitest --inspect-brk --no-file-parallelism",
"lint": "eslint ./",
"prettier": "prettier --list-different .",
"ci-check": "npm-run-all --parallel tsc tsc-extension flow prettier lint",
"prettier:fix": "prettier --write .",
"prepare-ci": "pnpm run build-playground-dev",
"prepare-ci-prod": "pnpm run build-playground-prod",
"prepare-release": "pnpm run build-release && node ./scripts/npm/prepare-release.js && node ./scripts/validate-tsc-types.js",
"prepare": "husky install",
"prepare-www": "node scripts/www/rewriteImports.js",
"changelog": "func() { git --no-pager log --oneline ${1}...HEAD --pretty=format:\"- %s %an\"; }; func",
"increment-version": "node ./scripts/npm/increment-version",
"update-changelog": "node ./scripts/npm/update-changelog",
"create-docs": "node ./scripts/create-docs",
"update-version": "node ./scripts/updateVersion",
"update-tsconfig": "node ./scripts/update-tsconfig",
"update-flowconfig": "node ./scripts/update-flowconfig",
"update-examples": "node ./scripts/update-examples.mjs",
"create-www-stubs": "node ./scripts/create-www-stubs",
"update-packages": "pnpm run update-version && pnpm run update-tsconfig && pnpm run update-flowconfig && pnpm run create-docs && pnpm run create-www-stubs",
"postversion": "node ./scripts/npm/postversion",
"publish-extension": "pnpm --filter @lexical/devtools run zip && pnpm --filter @lexical/devtools run publish",
"release": "pnpm run prepare-release && node ./scripts/npm/release.js"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/eslint-parser": "^7.24.5",
"@babel/helper-module-imports": "^7.24.1",
"@babel/plugin-transform-optional-catch-binding": "^7.24.1",
"@babel/preset-env": "^7.28.6",
"@babel/preset-flow": "^7.24.1",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@lexical/eslint-plugin": "file:./packages/lexical-eslint-plugin",
"@lexical/eslint-plugin-internal": "file:./packages/lexical-eslint-plugin-internal",
"@playwright/test": "^1.51.1",
"@prettier/sync": "^0.6.1",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@types/fs-extra": "^8.1.5",
"@types/jsdom": "^21.1.6",
"@types/katex": "^0.16.7",
"@types/node": "^17.0.31",
"@types/prettier": "^2.7.3",
"@types/prismjs": "^1.26.6",
"@types/proper-lockfile": "^4.1.4",
"@types/react": "^19.1.12",
"@types/react-dom": "^19.1.9",
"@types/trusted-types": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^8.39.1",
"@typescript-eslint/parser": "^8.39.1",
"@vitejs/plugin-react": "^5.0.3",
"baseline-browser-mapping": "^2.9.9",
"chokidar": "^3.5.2",
"concurrently": "^8.2.2",
"confusing-browser-globals": "^1.0.10",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-fbjs": "^4.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-ft-flow": "^3.0.7",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-no-function-declare-after-return": "^1.1.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"flow-bin": "^0.290.0",
"flow-typed": "^4.1.1",
"fs-extra": "^10.0.0",
"glob": "^10.4.1",
"google-closure-compiler": "^20220202.0.0",
"gzip-size": "^6.0.0",
"hermes-estree": "^0.26.0",
"hermes-parser": "^0.26.0",
"hermes-transform": "^0.26.0",
"husky": "^7.0.1",
"jsdom": "^24.0.0",
"lint-staged": "^11.1.0",
"minimist": "^1.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^3.6.2",
"prettier-plugin-hermes-parser": "^0.26.0",
"prettier-plugin-organize-attributes": "^0.0.5",
"prettier-plugin-tailwindcss": "^0.7.2",
"proper-lockfile": "^4.1.2",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-test-renderer": "^19.1.1",
"rollup": "^4.59.0",
"tmp": "^0.2.1",
"ts-morph": "^25.0.1",
"ts-node": "^10.9.1",
"typedoc": "^0.28.10",
"typescript": "^5.9.2",
"vite": "^7.1.4",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4",
"y-websocket": "^1.5.4"
},
"dependencies": {
"semver": "^7.7.2",
"yjs": "^13.6.27"
},
"pnpm": {
"overrides": {
"@shikijs/types": "3.20.0",
"react": "19.1.1",
"react-dom": "19.1.1",
"@types/node": "20.19.17",
"qs": ">=6.14.2",
"form-data": ">=4.0.4",
"@isaacs/brace-expansion": ">=5.0.1"
}
}
}