Skip to content

Commit e9f6de2

Browse files
committed
Enabled caching & fixed missing dep
1 parent 976c161 commit e9f6de2

4 files changed

Lines changed: 13 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"build": "vp run -r build",
2020
"build:clean": "vp run clean && vp run gen && vp run clean && vp run build",
2121
"build:site": "vp run -r build:site",
22-
"clean": "vp run -r clean",
22+
"clean": "vp run -r clean && vp cache clean",
2323
"deploy": "nx release --skip-publish",
2424
"gen": "vp run --filter @blocknote/dev-scripts gen",
2525
"install-playwright": "cd tests && vp exec playwright install --with-deps",

packages/xl-docx-exporter/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"@zip.js/zip.js": "^2.8.8",
7070
"react": "^19.2.5",
7171
"react-dom": "^19.2.5",
72+
"rimraf": "^5.0.10",
7273
"rollup-plugin-webpack-stats": "^0.2.6",
7374
"typescript": "^5.9.3",
7475
"xml-formatter": "^3.6.7",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ export default defineConfig({
44
staged: {
55
"*": "vp check --fix",
66
},
7+
run: {
8+
// Cache package.json scripts by default (off by default in vp).
9+
// Vite Task automatically fingerprints each command's read file set,
10+
// so cache invalidation already follows the workspace dependency graph:
11+
// when `core`'s dist changes, `react`'s build cache misses because
12+
// its tsc step reads `core`'s `.d.ts` files.
13+
cache: { scripts: true },
14+
},
715
lint: {
816
plugins: ["typescript", "react"],
917
options: {

0 commit comments

Comments
 (0)