Skip to content

Commit e392cfc

Browse files
committed
fix typegen: use configured app dir
1 parent 86d335b commit e392cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router-dev/typescript/typegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getDirectory(ctx: Context) {
2828
export function getPath(ctx: Context, route: RouteManifestEntry): string {
2929
return Path.join(
3030
getDirectory(ctx),
31-
"app",
31+
Path.basename(ctx.appDirectory),
3232
Path.dirname(route.file),
3333
"+types." + Pathe.filename(route.file) + ".d.ts"
3434
);

0 commit comments

Comments
 (0)