Skip to content

Commit 378c4a2

Browse files
committed
fix: run void prepare on install so vp check has generated route types
vite-plus 0.2.8 surfaces tsconfig errors during vp check. The root tsconfig extends .void/tsconfig.json, which lists .void/routes.d.ts in its files field, but that file is gitignored and only written by void prepare. Run void prepare in the prepare script so a fresh install (local or CI) generates it before vp check runs.
1 parent 8be7d4e commit 378c4a2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This project is using Vite+, a unified toolchain built on top of Vite, Rolldown,
66

77
Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.
88

9+
## Built-in Commands vs Scripts
10+
11+
`vp <name>` runs a built-in command. `vp run <name>` runs a `package.json` script or a `vite.config.ts` task. Scripts cannot overwrite built-ins, so `vp dev` and `vp run dev` may do different things. Check `package.json` and `vite.config.ts` first, and run `vp run <name>` when the project defines a script or task with that name.
12+
913
## Review Checklist
1014

1115
- [ ] Run `vp install` after pulling remote changes and before getting started.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"dev": "vp dev",
66
"build": "vp build",
7-
"prepare": "vp config"
7+
"prepare": "vp config && void prepare"
88
},
99
"devDependencies": {
1010
"@types/node": "catalog:",

0 commit comments

Comments
 (0)