Skip to content

Commit 3f460d2

Browse files
authored
fix(docs): build workspace packages before docs (#344)
Twoslash resolves `@vitejs/devtools*` imports via the package's `types` field, which points at `dist/index.d.ts`. Without a prior `pnpm build`, those files don't exist and `vitepress build` fails with TS2307.
1 parent 0fc20b0 commit 3f460d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"dev:rolldown": "pnpm -C packages/rolldown run dev",
1111
"dev:vite": "pnpm -C packages/vite run dev",
1212
"docs": "pnpm -C docs run docs",
13-
"docs:build": "pnpm -C docs run docs:build",
13+
"docs:build": "pnpm build && pnpm -C docs run docs:build",
1414
"docs:serve": "pnpm -C docs run docs:serve",
1515
"play": "pnpm -C packages/core run play",
1616
"play:debug": "pnpm -C packages/core run play:debug",

0 commit comments

Comments
 (0)