mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-15 09:34:23 +00:00
b1f16dda2c
Mermaid's block layout keeps a d3 selection on each block's size and then JSON.stringifies the blocks for a debug log. The selection references <html>, which React hydrates with circular fiber properties, so rendering throws and the block falls back to a plain code block. Patch Mermaid to drop the unused selection, and version the runtime URL by patch hash so cached runtimes are not reused.
74 lines
2.5 KiB
JSON
74 lines
2.5 KiB
JSON
{
|
|
"name": "gitbook",
|
|
"version": "0.1.0",
|
|
"engines": {
|
|
"node": "^22.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/cli": "^2.31.0",
|
|
"oxfmt": "^0.62.0",
|
|
"oxlint": "^1.77.0",
|
|
"turbo": "^2.10.3",
|
|
"vercel": "50.37.3"
|
|
},
|
|
"packageManager": "bun@1.3.7",
|
|
"overrides": {
|
|
"@codemirror/state": "6.4.1",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"esbuild": "0.27.3",
|
|
"axios": "1.8.4"
|
|
},
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "turbo run dev --concurrency 20",
|
|
"build": "turbo run build",
|
|
"clean-deps": "rm -rf node_modules && rm -rf packages/*/node_modules",
|
|
"typecheck": "turbo run typecheck",
|
|
"lint": "oxlint --quiet",
|
|
"lint:fix": "oxlint --fix --quiet",
|
|
"format": "oxfmt",
|
|
"format:check": "oxfmt --check",
|
|
"unit": "turbo run unit",
|
|
"e2e": "turbo run e2e",
|
|
"e2e-customers": "turbo run e2e-customers",
|
|
"changeset": "changeset",
|
|
"changeset-version": "changeset version && bun run format && bun update",
|
|
"publish-all-packages": "turbo run publish-to-npm --continue=dependencies-successful",
|
|
"download:env": "op read op://gitbook-x-dev/gitbook-open/.env.local >> .env.local",
|
|
"clean": "turbo run clean"
|
|
},
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/*"
|
|
],
|
|
"catalog": {
|
|
"@tsconfig/strictest": "^2.0.6",
|
|
"@tsconfig/node20": "^20.1.6",
|
|
"@base-ui/react": "^1.7.0",
|
|
"@gitbook/api": "0.206.0",
|
|
"@scalar/api-client-react": "^1.3.46",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"assert-never": "^1.4.0",
|
|
"bidc": "^0.0.2",
|
|
"bun-types": "^1.1.20",
|
|
"classnames": "^2.5.1",
|
|
"react": "^19.0.1",
|
|
"react-dom": "^19.0.1",
|
|
"tsdown": "^0.15.6",
|
|
"typescript": "^5.5.3",
|
|
"usehooks-ts": "^3.1.1",
|
|
"vercel": "^50.26.1"
|
|
}
|
|
},
|
|
"patchedDependencies": {
|
|
"decode-named-character-reference@1.0.2": "patches/decode-named-character-reference@1.0.2.patch",
|
|
"@vercel/next@4.4.2": "patches/@vercel%2Fnext@4.4.2.patch",
|
|
"next@16.3.8": "patches/next@16.3.8.patch",
|
|
"mermaid@11.14.0": "patches/mermaid@11.14.0.patch"
|
|
}
|
|
}
|