Skip to content

Commit 35f620e

Browse files
committed
build: run gen before, invalidate on examples change
1 parent c6900e4 commit 35f620e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "next dev --turbo",
88
"dev:email": "email dev",
9+
"prebuild:site": "nx run @blocknote/dev-scripts:gen",
910
"build:site": "fumadocs-mdx && next build --turbo",
1011
"start": "next start",
1112
"postinstall": "fumadocs-mdx",

nx.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
},
2525
"build:site": {
2626
"cache": true,
27-
"dependsOn": ["^build", "^gen"],
27+
"dependsOn": ["^build"],
28+
"inputs": ["{workspaceRoot}/examples/**/*"],
2829
"outputs": [
2930
"{projectRoot}/dist",
3031
"{projectRoot}/.next",

0 commit comments

Comments
 (0)