Skip to content

Commit cda3e9d

Browse files
authored
typegen: allow configured app directory (#12203)
* update pnpm-lock * fix typegen: use configured app dir
1 parent cae658e commit cda3e9d

File tree

2 files changed

+1
-74
lines changed

2 files changed

+1
-74
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
);

pnpm-lock.yaml

Lines changed: 0 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)