We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
appDirectory
1 parent 8a5cf09 commit 5823124Copy full SHA for 5823124
contributors.yml
@@ -218,6 +218,7 @@
218
- promet99
219
- pyitphyoaung
220
- refusado
221
+- rifaidev
222
- rimian
223
- robbtraister
224
- RobHannay
packages/react-router-dev/typescript/typegen.ts
@@ -28,7 +28,7 @@ function getDirectory(ctx: Context) {
28
export function getPath(ctx: Context, route: RouteManifestEntry): string {
29
return Path.join(
30
getDirectory(ctx),
31
- Path.basename(ctx.appDirectory),
+ Path.relative(ctx.rootDirectory, ctx.appDirectory),
32
Path.dirname(route.file),
33
"+types." + Pathe.filename(route.file) + ".d.ts"
34
);
0 commit comments