Skip to content

Commit 85d1c79

Browse files
committed
fix: generate react-router types on install
Type-aware lint reads apps/web/.react-router/types, which only existed after running typecheck or dev. CI runs pnpm verify (lint first) on a fresh checkout, so vp lint failed with 15 missing-module errors. Run react-router typegen as apps/web postinstall so the generated types exist right after pnpm install.
1 parent f8687cb commit 85d1c79

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "react-router build",
99
"start": "react-router-serve build/server/index.js",
1010
"deploy": "wrangler deploy",
11+
"postinstall": "react-router typegen",
1112
"test": "vp test run",
1213
"typecheck": "react-router typegen && tsc --noEmit"
1314
},

0 commit comments

Comments
 (0)