Skip to content

Commit 11975b5

Browse files
committed
build: fix website build
1 parent 41e647e commit 11975b5

File tree

3 files changed

+146
-200
lines changed

3 files changed

+146
-200
lines changed

docs/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
"@ai-sdk/openai-compatible": "^1.0.22",
2323
"@aws-sdk/client-s3": "^3.609.0",
2424
"@aws-sdk/s3-request-presigner": "^3.609.0",
25-
"@blocknote/code-block": "latest",
26-
"@blocknote/server-util": "latest",
27-
"@blocknote/xl-ai": "latest",
28-
"@blocknote/xl-docx-exporter": "latest",
29-
"@blocknote/xl-email-exporter": "latest",
30-
"@blocknote/xl-multi-column": "latest",
31-
"@blocknote/xl-odt-exporter": "latest",
32-
"@blocknote/xl-pdf-exporter": "latest",
25+
"@blocknote/code-block": "workspace:*",
26+
"@blocknote/server-util": "workspace:*",
27+
"@blocknote/xl-ai": "workspace:*",
28+
"@blocknote/xl-docx-exporter": "workspace:*",
29+
"@blocknote/xl-email-exporter": "workspace:*",
30+
"@blocknote/xl-multi-column": "workspace:*",
31+
"@blocknote/xl-odt-exporter": "workspace:*",
32+
"@blocknote/xl-pdf-exporter": "workspace:*",
3333
"@emotion/react": "^11.11.4",
3434
"@emotion/styled": "^11.11.5",
3535
"@fumadocs/mdx-remote": "1.3.0",
@@ -79,12 +79,12 @@
7979
"clsx": "2.1.1",
8080
"docx": "^9.0.2",
8181
"framer-motion": "^11.18.2",
82-
"fumadocs-core": "^15.8.5",
83-
"fumadocs-docgen": "^2.1.0",
84-
"fumadocs-mdx": "^11.10.1",
85-
"fumadocs-twoslash": "^3.1.8",
86-
"fumadocs-typescript": "^4.0.11",
87-
"fumadocs-ui": "^15.8.5",
82+
"fumadocs-core": "15.5.4",
83+
"fumadocs-docgen": "2.0.1",
84+
"fumadocs-mdx": "11.6.9",
85+
"fumadocs-twoslash": "3.1.4",
86+
"fumadocs-typescript": "4.0.6",
87+
"fumadocs-ui": "15.5.4",
8888
"import-in-the-middle": "^1.15.0",
8989
"next": "15.5.1",
9090
"nodemailer": "^6.10.1",
@@ -107,15 +107,15 @@
107107
"zustand": "^5.0.3"
108108
},
109109
"devDependencies": {
110-
"@blocknote/ariakit": "workspace:^",
111-
"@blocknote/code-block": "workspace:^",
112-
"@blocknote/core": "workspace:^",
113-
"@blocknote/mantine": "workspace:^",
114-
"@blocknote/react": "workspace:^",
115-
"@blocknote/shadcn": "workspace:^",
116-
"@blocknote/xl-docx-exporter": "workspace:^",
117-
"@blocknote/xl-multi-column": "workspace:^",
118-
"@blocknote/xl-pdf-exporter": "workspace:^",
110+
"@blocknote/ariakit": "workspace:*",
111+
"@blocknote/code-block": "workspace:*",
112+
"@blocknote/core": "workspace:*",
113+
"@blocknote/mantine": "workspace:*",
114+
"@blocknote/react": "workspace:*",
115+
"@blocknote/shadcn": "workspace:*",
116+
"@blocknote/xl-docx-exporter": "workspace:*",
117+
"@blocknote/xl-multi-column": "workspace:*",
118+
"@blocknote/xl-pdf-exporter": "workspace:*",
119119
"@liveblocks/react": "^2.24.3",
120120
"@liveblocks/react-tiptap": "^2.24.3",
121121
"@liveblocks/react-ui": "^2.24.3",

packages/dev-scripts/examples/genDocs.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,19 @@ async function addDependenciesToExample(project: Project) {
167167
...packageJsonObject.devDependencies,
168168
...devDependencies,
169169
};
170+
// Change all instances of `@blocknote/*` to `workspace:*`, since we want packages to be installed from the workspace
171+
Object.entries(packageJsonObject.dependencies).forEach(([key, value]) => {
172+
if (key.startsWith("@blocknote/")) {
173+
packageJsonObject.dependencies[key] = "workspace:*";
174+
}
175+
});
176+
Object.entries(packageJsonObject.devDependencies).forEach(
177+
([key, value]) => {
178+
if (key.startsWith("@blocknote/")) {
179+
packageJsonObject.devDependencies[key] = "workspace:*";
180+
}
181+
},
182+
);
170183
fs.writeFileSync(packageJson, JSON.stringify(packageJsonObject, null, 2));
171184
}
172185
}

0 commit comments

Comments
 (0)