Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
225 lines (225 loc) · 15.5 KB
/
Copy pathpackage.json
File metadata and controls
225 lines (225 loc) · 15.5 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
213
214
215
216
217
218
219
220
221
222
223
224
225
{
"name": "plate",
"private": true,
"license": "MIT",
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"bench:docx": "BENCH_MEASURE=1 bun tooling/scripts/test-suite.mjs benchmarks/editor/benchmarks/plate-docx-retained-source-benchmark.test.ts benchmarks/editor/benchmarks/plate-docx-revision-import-benchmark.test.ts",
"bench:markdown": "BENCH_MEASURE=1 bun test ./packages/platejs/src/markdown/lib/markdownTable.benchmark.spec.ts",
"bench:table": "BENCH_MEASURE=1 bun test ./packages/platejs/src/features/table/lib/internal/mutation.benchmark.spec.ts ./packages/platejs/src/features/table/lib/internal/paste.benchmark.spec.ts",
"bench:targets:check": "node tooling/scripts/bench-targets.mjs check",
"bench:targets:dry-run": "node tooling/scripts/bench-targets.mjs dry-run",
"bench:targets:list": "node tooling/scripts/bench-targets.mjs list",
"bench:targets:report": "node tooling/scripts/bench-targets.mjs report",
"bench:targets:report:check": "node tooling/scripts/bench-targets.mjs report --check",
"bench:targets:report:dry-run": "node tooling/scripts/bench-targets.mjs report --dry-run",
"bench:targets:run": "node tooling/scripts/bench-targets.mjs run",
"brl": "pnpm g:brl",
"build": "pnpm g:build",
"build:apps": "turbo --filter \"./apps/www\" build",
"build:tw": "pnpm --filter www build:tw",
"build:www:ci": "turbo run build --filter=www... --concurrency=2 --cache=local:rw",
"build:watch": "ROARR_LOG=true turbowatch ./tooling/config/turbowatch.config.ts | roarr",
"check": "node tooling/scripts/check.mjs",
"local-ci": "node tooling/scripts/local-ci.mjs",
"kb": "node tooling/scripts/knowledge/kb.mjs",
"check:authored-order": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/authored-decision-order.ts",
"check:authored-recording": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/authored-recording-order.ts",
"check:authored-safety": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/authored-safety.ts",
"check:undo-redo-history": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/undo-redo-history.ts",
"check:delete-paste-ranges": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/delete-paste-ranges.ts",
"check:markdown-round-trip": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/markdown-round-trip.ts",
"check:autoformat-rules": "bun --preload ./config/plite-source-aliases.ts apps/www/scripts/autoformat-input-rules.ts",
"check:combobox-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/combobox-invariants.ts",
"check:menu-ranking-invariants": "bun --preload ./config/plite-source-aliases.ts apps/www/scripts/menu-ranking-invariants.ts",
"check:docx-import-report": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/docx-import-report.ts",
"check:docx-round-trip": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/docx-round-trip.ts",
"check:table-grid": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/table-grid-commands.ts",
"check:agent-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/agent-invariants.ts",
"check:comments-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/comments-invariants.ts",
"check:conversion-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/conversion-invariants.ts",
"check:upload-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/upload-invariants.ts",
"check:field-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/field-invariants.ts",
"check:find-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/find-invariants.ts",
"check:persistence-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/persistence-invariants.ts",
"check:events-handlers-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/events-handlers-invariants.ts",
"check:plugin-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/plugin-invariants.ts",
"check:root-lock-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/root-lock-invariants.ts",
"check:styles-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/styles-invariants.ts",
"check:styles-toolbar-invariants": "bun --preload ./config/plite-source-aliases.ts apps/www/scripts/styles-toolbar-invariants.tsx",
"check:ink-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/ink-invariants.ts",
"check:link-invariants": "bun --preload ./config/plite-source-aliases.ts packages/platejs/scripts/link-invariants.ts",
"check:v4-intent-oracle": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/v4-intent-oracle.ts",
"check:clipboard-invariants": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/clipboard-invariants.ts",
"check:diff-invariants": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/diff-invariants.ts",
"check:native-invariants": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/native-invariants.ts",
"check:selection-invariants": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/selection-invariants.ts",
"check:editing-ranges-invariants": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/editing-ranges-invariants.ts",
"check:sync-simulation": "bun --preload ./config/plite-source-aliases.ts packages/plitejs/scripts/sync-simulation.ts",
"check:core": "node tooling/scripts/check-core.mjs",
"check:plate-feature": "node tooling/scripts/check-plate-feature.mjs",
"check:plite": "node tooling/scripts/check-plite.mjs strict",
"check:plite:contracts": "node --test tooling/scripts/bench-targets.test.mjs tooling/scripts/check-package-build-artifacts.test.mjs tooling/scripts/check-package-declaration-brands.test.mjs tooling/scripts/check-plite-release-artifacts.test.mjs tooling/scripts/entrypoint-dag-plugin.test.mjs tooling/scripts/entrypoint-turbo.test.mjs tooling/scripts/load-trace.test.mjs tooling/scripts/plite-source-aliases.test.mjs tooling/scripts/run-bounded-process.test.mjs tooling/scripts/test-suite-routing.test.mjs apps/plite/scripts/*.test.mjs && bun test --preload ./config/plite-source-test-setup.ts benchmarks/editor/benchmarks/benchmark-artifact.test.ts benchmarks/editor/benchmarks/plite-clipboard-large-payload-benchmark.test.ts benchmarks/editor/benchmarks/plite-command-dispatch-benchmark.test.ts benchmarks/editor/benchmarks/plite-content-slice-value-benchmark.test.ts benchmarks/editor/benchmarks/plite-plugin-graph-benchmark.test.ts benchmarks/editor/benchmarks/plite-fit-content-locality-benchmark.test.ts benchmarks/editor/benchmarks/plite-read-view-lifecycle-benchmark.test.ts benchmarks/editor/benchmarks/plite-schema-architecture-benchmark.test.ts benchmarks/editor/benchmarks/plite-schema-construction-benchmark.test.ts && pnpm plite:bench:targets:check && pnpm plite:public-types",
"check:plite:dev": "node tooling/scripts/check-plite.mjs dev",
"check:plite:packages": "node tooling/scripts/check-plite.mjs packages",
"check:plite:browser-matrix": "pnpm --filter plite test:plite-browser",
"ci:release": "node tooling/scripts/release-packages.mjs",
"ci:version": "pnpm changeset version && oxfmt .changeset packages/*/CHANGELOG.md && pnpm install --no-frozen-lockfile",
"deps:check": "npx npm-check-updates@latest --configFileName config/ncurc.yml --workspaces --root --mergeConfig",
"deps:update": "npx npm-check-updates@latest --configFileName config/ncurc.yml -u --workspaces --root --mergeConfig",
"dev": "turbo --filter=www dev",
"dev:plite": "pnpm --filter www dev:plite",
"devt": "pnpm --filter www devt",
"entrypoint:turbo:check": "node tooling/scripts/generate-entrypoint-turbo.mjs check && node tooling/scripts/migrate-platejs-entrypoint-imports.mjs",
"entrypoint:turbo:generate": "node tooling/scripts/generate-entrypoint-turbo.mjs generate",
"e2e": "pnpm exec playwright test --config tooling/config/playwright.config.ts",
"generate": "node tooling/scripts/check.mjs --write",
"g:brl": "turbo --filter \"./packages/**\" brl",
"g:build": "turbo --filter \"./packages/**\" build",
"g:build:watch": "pnpm build:watch",
"g:changeset": "changeset",
"g:clean": "turbo --filter \"./packages/**\" clean",
"g:dev": "turbo --filter=www dev",
"g:lint": "turbo --filter \"./packages/**\" lint",
"g:lint:fix": "turbo lint:fix",
"g:plate-ui": "cd ${INIT_CWD:-.} && COMPONENTS_REGISTRY_URL=http://localhost:3000 pnpm exec plate-ui",
"g:r": "pnpm --filter www r",
"g:release:beta": "node tooling/scripts/release-packages.mjs --channel beta",
"g:release:next": "pnpm g:release:beta",
"lint": "ultracite check",
"lint:fix": "ultracite fix",
"lint:baseline": "node tooling/oxlint/plate-baseline.mjs",
"lint:task": "node tooling/scripts/lint-task.mjs",
"lint:type-aware": "oxlint --disable-nested-config --type-aware --threads=2 --report-unused-disable-directives-severity=error .",
"notify": "node tooling/scripts/notify.mjs",
"nuke:node_modules": "rimraf '**/node_modules'",
"p:brl": "sh tooling/scripts/brl.sh",
"p:build": "cd ${INIT_CWD:-.} && pnpm p:tsdown",
"p:build:watch": "cd ${INIT_CWD:-.} && pnpm exec tsdown --config=${PROJECT_CWD:-.}/tooling/config/tsdown.config.ts --log-level warn --watch",
"p:clean": "cd ${INIT_CWD:-.} && rimraf dist",
"p:lint": "cd ${INIT_CWD:-.} && pnpm exec ultracite check .",
"p:lint:fix": "cd ${INIT_CWD:-.} && pnpm exec ultracite fix .",
"p:test": "cd ${INIT_CWD:-.} && bun test",
"p:tsdown": "cd ${INIT_CWD:-.} && pnpm exec tsdown --config=${PROJECT_CWD:-.}/tooling/config/tsdown.config.ts --log-level warn",
"prepare": "node tooling/scripts/prepare.mjs",
"r": "pnpm --filter www r",
"rc": "turbo --filter=www rc",
"reinstall": "bash tooling/scripts/reinstall.sh",
"release": "pnpm build && pnpm plite:release:packages && pnpm changeset publish",
"shadcn:build": "pnpm --filter www shadcn:build",
"plite:bench:targets:check": "node tooling/scripts/bench-targets.mjs check",
"plite:bench:targets:dry-run": "node tooling/scripts/bench-targets.mjs dry-run",
"plite:bench:targets:list": "node tooling/scripts/bench-targets.mjs list",
"plite:bench:targets:run": "node tooling/scripts/bench-targets.mjs run",
"plite:browser:install": "pnpm --filter plite exec playwright install",
"plite:browser:test": "pnpm --filter @platejs/test test",
"plite:packages:build": "turbo build --filter=./packages/plitejs --filter=./packages/test --filter=./packages/cli --filter=./packages/platejs",
"plite:public-types": "pnpm plite:packages:build && tsc --project packages/plitejs/test/tsconfig.public-package-types.json --noEmit && node tooling/scripts/check-declaration-consumer.mjs",
"plite:release:packages": "pnpm plite:packages:build && node tooling/scripts/check-plite-release-artifacts.mjs",
"plite:release:boundaries": "turbo build --filter=./packages/plitejs --filter=./packages/platejs && node tooling/scripts/check-plite-release-artifacts.mjs --package-boundaries-only",
"plite:test": "turbo run test --filter=plitejs --filter=platejs --filter=@platejs/test --concurrency=6 --continue --output-logs=errors-only --log-order=grouped",
"plite:typecheck": "node tooling/scripts/typecheck.mjs plitejs platejs @platejs/test",
"sync-shadcn": "node .agents/rules/sync-shadcn/scripts/build-dashboard.mjs",
"templates:ai": "./tooling/scripts/update-template.sh ai",
"templates:basic": "./tooling/scripts/update-template.sh basic",
"templates:check": "cd templates/plate-template && pnpm lint && pnpm typecheck && cd ../plate-playground-template && pnpm lint && pnpm typecheck",
"templates:push": "./tooling/scripts/push-template.sh \"templates/*\"",
"templates:test": "cd templates/plate-template && pnpm dlx shadcn@latest add @plate/editor-ai -o && pnpm lint && pnpm typecheck",
"templates:update": "./tooling/scripts/update-templates.sh",
"test": "bun tooling/scripts/test-suite.mjs",
"test:coverage": "bun test --coverage",
"test:deferred": "bun tooling/scripts/test-deferred.mjs",
"test:fast": "bun tooling/scripts/test-suite.mjs --fast",
"test:manifests": "node tooling/scripts/check-workspace-package-manifests.mjs",
"test:profile": "bun tooling/scripts/test-slowest.mjs --profile",
"test:slow": "bun tooling/scripts/test-suite.mjs --slow",
"test:slowest": "bun tooling/scripts/test-slowest.mjs",
"test:plite": "pnpm plite:test",
"test:plite:browser": "pnpm --filter plite test:plite-browser",
"test:plite:full": "pnpm test:plite && pnpm test:plite:browser",
"test:types": "tsc -p tooling/config/tsconfig.type-tests.json --noEmit",
"test:watch": "bun tooling/scripts/test-suite.mjs --watch",
"translate": "ts-node tooling/scripts/translate.mjs",
"triage": "node tooling/scripts/triage.mjs",
"typecheck": "node tooling/scripts/typecheck.mjs",
"typecheck:all": "turbo typecheck --concurrency=2"
},
"devDependencies": {
"@babel/core": "8.0.1",
"@babel/parser": "7.29.0",
"@changesets/cli": "2.30.0",
"@changesets/get-github-info": "0.8.0",
"@happy-dom/global-registrator": "20.11.15",
"@playwright/test": "1.61.0",
"@roarr/cli": "5.12.4",
"@rollup/plugin-babel": "6.1.0",
"@swc/core": "1.12.0",
"@tailwindcss/postcss": "4.1.8",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.3.0",
"@testing-library/user-event": "14.6.1",
"@types/bun": "1.4.4",
"@types/is-hotkey": "0.1.10",
"@types/jest": "29.5.14",
"@types/lodash": "4.17.17",
"@types/node": "24.12.0",
"@types/prismjs": "1.26.5",
"@types/prompts": "2.4.9",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@typescript/typescript6": "6.0.2",
"app-root-path": "3.1.0",
"autoprefixer": "10.4.21",
"babel-plugin-react-compiler": "1.0.0",
"barrelsby": "2.8.1",
"bun": "1.4.4",
"bun-types": "1.4.4",
"class-variance-authority": "0.7.1",
"commander": "14.0.1",
"concurrently": "9.1.2",
"cross-env": "7.0.3",
"dotenv": "16.5.0",
"extract-zip": "2.0.1",
"openai": "5.3.0",
"oxfmt": "0.64.0",
"oxlint": "1.79.0",
"oxlint-plugin-react-doctor": "0.9.12",
"oxlint-tsgolint": "7.0.2001",
"prompts": "2.4.2",
"react": "19.2.8",
"react-dom": "19.2.8",
"rimraf": "6.0.1",
"rolldown": "1.2.0",
"serve-handler": "6.1.6",
"tailwind-merge": "3.3.1",
"tailwindcss": "4.1.8",
"tinyglobby": "0.2.14",
"tsdown": "0.22.13",
"turbo": "2.6.1",
"turbowatch": "2.29.4",
"typescript": "7.0.2",
"typescript5": "npm:typescript@5.9.3",
"ultracite": "7.10.6",
"zod": "4.6.6"
},
"engines": {
"node": "^22.18.0 || >=24.11.0",
"pnpm": ">=9.15.0"
},
"packageManager": "pnpm@9.15.0",
"pnpm": {
"overrides": {
"happy-dom": "20.11.15"
},
"patchedDependencies": {
"mdast-util-find-and-replace@3.0.2": "patches/mdast-util-find-and-replace@3.0.2.patch"
}
},
"patchedDependencies": {
"is-hotkey@0.2.0": "patches/is-hotkey@0.2.0.patch"
}
}