Skip to content

Commit deb5de0

Browse files
committed
changeset
1 parent 0d0fa51 commit deb5de0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.changeset/yellow-carpets-own.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@react-router/dev": patch
33
---
44

5-
Fix typegen support for routes outside appDirectory
5+
Include all routes within the React Router root directory when performing typegen, not just routes within the app directory.

integration/typegen-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ test.describe("typegen", () => {
336336
await $("pnpm typecheck");
337337
});
338338

339-
test("routes outside app dir", async ({ edit, $ }) => {
339+
test("routes within root dir, but outside app dir", async ({ edit, $ }) => {
340340
await edit({
341341
"react-router.config.ts": tsx`
342342
export default {

0 commit comments

Comments
 (0)