Repository: TanStack/router
Pull request #2278 (2024-09-06 17:18:25)

fix: make router-generator a peer dep of react-router
type tests of generated code must be implemented in a separate package to break up this circular dependency

nx-cloud[bot]: # ☁️ Nx Cloud Report

CI is running for commit e12eeb774a0db2576c0cf2080fa53a87481a902f.

[📂 Click to track the progress, see the status, the terminal output, and the build insights.](https://cloud.nx.app/cipes/66db397a79a961293db99bb0?utm_source=pull-request&utm_medium=comment)


---

Sent with 💌 from [NxCloud.](https://nx.app?utm_source=pull-request&utm_medium=comment)
pkg-pr-new[bot]: 
[Open in Stackblitz](https://pkg.pr.new/template/5e90c223-fae7-4f0d-994a-845684e73749)
<details><summary><b>More templates</b></summary><p>

- [tanstack-router-react-example-authenticated-routes](https://pkg.pr.new/template/f6e43869-5a65-4ea4-8229-c28f2c6031e8)
- [tanstack-router-react-example-basic](https://pkg.pr.new/template/097f725a-695c-4358-a673-6d2711691db1)
- [tanstack-router-react-example-basic-default-search-params](https://pkg.pr.new/template/fc5bea2d-e8db-4022-a61d-ef9bc2967f6f)
- [tanstack-router-react-example-basic-file-based](https://pkg.pr.new/template/f694a69f-3187-4ade-b026-db809da6de2d)
- [tanstack-router-react-example-basic-file-based-codesplitting](https://pkg.pr.new/template/89ba04c0-c18a-4361-8a7c-d026a67699b7)
- [tanstack-router-react-example-react-query](https://pkg.pr.new/template/ba9ec4f7-f86c-4e8e-9893-88534b192e28)
- [tanstack-router-react-example-basic-react-query-file-based](https://pkg.pr.new/template/dfa5fd76-34a3-40c6-a4a9-e40d38993811)
- [tanstack-router-react-example-basic-ssr-file-based](https://pkg.pr.new/template/c322a429-6abb-4d54-a48c-3ea27a30314a)
- [tanstack-router-react-example-basic-ssr-streaming-file-based](https://pkg.pr.new/template/bec80d4e-0401-4396-b255-89ca5c0b2b7a)
- [tanstack-router-react-example-basic-virtual-file-based](https://pkg.pr.new/template/e645a126-83d5-4e12-8a0e-76cad29f8a6d)
- [tanstack-router-react-example-basic-virtual-inside-file-based](https://pkg.pr.new/template/5c82171d-6dee-487b-a404-8a7d3c20e777)
- [tanstack-router-react-example-deferred-data](https://pkg.pr.new/template/5e6d6322-2df6-47d0-b9fa-6bc5e92f137a)
- [tanstack-router-react-example-kitchen-sink](https://pkg.pr.new/template/c8b8aab8-b57d-47f2-b840-fa6396d35bf4)
- [tanstack-router-react-example-kitchen-sink-file-based](https://pkg.pr.new/template/b24151fd-a612-43e4-a734-877fa6195d82)
- [tanstack-router-react-example-kitchen-sink-react-query](https://pkg.pr.new/template/4f52abfa-159d-4493-b4d7-1c877cac3049)
- [tanstack-router-react-example-kitchen-sink-react-query-file-based](https://pkg.pr.new/template/dd4fefea-32c2-489c-9e31-002c72259038)
- [tanstack-router-react-example-large-file-based](https://pkg.pr.new/template/2e202041-902f-46f1-9d65-d683c910205e)
- [tanstack-router-react-example-navigation-blocking](https://pkg.pr.new/template/4231c98d-93f3-48de-9f77-9c26f85a8db9)
- [tanstack-router-react-example-location-masking](https://pkg.pr.new/template/5b3929ce-58dd-4b18-8235-ac912d6e03d8)
- [tanstack-router-react-example-quickstart](https://pkg.pr.new/template/86dd1957-c43f-4778-b88e-72cf1bad43ae)
- [tanstack-router-react-example-quickstart-file-based](https://pkg.pr.new/template/3c579cf4-e328-446e-a118-2642238fb952)
- [tanstack-router-react-example-quickstart-rspack-file-based](https://pkg.pr.new/template/77b54860-5b79-474d-a4cb-bde60905aaae)
- [tanstack-router-react-example-quickstart-webpack-file-based](https://pkg.pr.new/template/97e2feb9-e955-4c18-b400-3c118a8f9614)
- [tanstack-router-react-example-scroll-restoration](https://pkg.pr.new/template/7eef5982-ce63-43c4-b23b-609fe70219e4)
- [tanstack-router-search-validator-adapters](https://pkg.pr.new/template/aacf50a6-971b-42e8-b915-6ca1ec88b5b9)
- [tanstack-router-example-react-start-basic](https://pkg.pr.new/template/bcf6843f-b5b6-4f3f-81cb-c1e7694e938e)
- [tanstack-router-example-react-start-basic-auth](https://pkg.pr.new/template/c09ef973-b938-44d6-b267-a6c01b7c8306)
- [tanstack-router-example-react-start-basic-counter](https://pkg.pr.new/template/46c06a3a-9c35-4d1d-9b65-2930edd269b4)
- [tanstack-router-example-react-start-basic-react-query](https://pkg.pr.new/template/967195e8-1b16-4c32-adac-f5f14d8d68be)
- [tanstack-router-example-react-start-basic-rsc](https://pkg.pr.new/template/64302419-21f6-4d96-ba5a-17ab4a512b60)
- [tanstack-router-example-react-start-clerk-basic](https://pkg.pr.new/template/2835213d-0e8c-43ee-80b8-22d1e214c95a)
- [tanstack-router-example-react-start-trello-trellaux](https://pkg.pr.new/template/509014b0-462d-49d2-ae14-b135a83a5856)
- [tanstack-router-example-react-start-trellaux](https://pkg.pr.new/template/3e16cda2-f40d-4784-8005-be6968f15460)
- [tanstack-router-react-example-with-framer-motion](https://pkg.pr.new/template/b49a98bf-4115-43f6-87da-75c804a6725c)
- [tanstack-router-react-example-with-trpc](https://pkg.pr.new/template/1949da62-eb18-4685-a1fd-d5972da81035)
- [tanstack-router-react-example-with-trpc-react-query](https://pkg.pr.new/template/a94d37e6-6e08-44a3-8598-2373304d5932)

</p></details>
      
    


<details><summary><b>@tanstack/history</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/history@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/react-cross-context</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/react-cross-context@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/react-router</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/react-router@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/react-router-with-query</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/react-router-with-query@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-arktype-adapter</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-arktype-adapter@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-cli</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-cli@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-devtools</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-devtools@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-plugin</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-plugin@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-generator</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-generator@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-valibot-adapter</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-valibot-adapter@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-vite-plugin</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/router-zod-adapter</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/router-zod-adapter@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/start</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/start@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/start-vite-plugin</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/start-vite-plugin@2278
```

</p></details>
      
    

<details><summary><b>@tanstack/virtual-file-routes</b></summary><p>

```
pnpm add https://pkg.pr.new/@tanstack/virtual-file-routes@2278
```

</p></details>
      
    

_commit: <a href="https://github.com/TanStack/router/runs/29795329627"><code>e12eeb7</code></a>_


Patch:
diff --git a/.gitignore b/.gitignore
index aa0f28728..ce8d7b7cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,9 @@ coverage
 *.tgz
 .wrangler
 
+# tests
+packages/router-generator/tests/**/*.gen.ts
+
 # misc
 .DS_Store
 .env
diff --git a/packages/react-router/package.json b/packages/react-router/package.json
index 6dae40775..443bc40df 100644
--- a/packages/react-router/package.json
+++ b/packages/react-router/package.json
@@ -80,6 +80,12 @@
   },
   "peerDependencies": {
     "react": ">=18",
-    "react-dom": ">=18"
+    "react-dom": ">=18",
+    "@tanstack/router-generator": "workspace:*"
+  },
+  "peerDependenciesMeta": {
+    "@tanstack/react-router": {
+      "optional": true
+    }
   }
 }
diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json
index 98ee3bda6..bdf6a9aac 100644
--- a/packages/router-generator/package.json
+++ b/packages/router-generator/package.json
@@ -67,8 +67,5 @@
     "tsx": "^4.19.0",
     "prettier": "^3.3.3",
     "zod": "^3.23.8"
-  },
-  "devDependencies": {
-    "@tanstack/react-router": "^1.53.1"
   }
 }
diff --git a/packages/router-generator/tsconfig.json b/packages/router-generator/tsconfig.json
index 4c0c7257c..604fde555 100644
--- a/packages/router-generator/tsconfig.json
+++ b/packages/router-generator/tsconfig.json
@@ -1,8 +1,5 @@
 {
   "extends": "../../tsconfig.json",
-  "compilerOptions": {
-    "jsx": "react-jsx",
-    "module": "ESNext"
-  },
-  "include": ["src", "vite.config.ts", "tests"]
+  "include": ["src", "vite.config.ts", "tests"],
+  "exclude": ["tests/generator/**/**"]
 }
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a3cac5aa2..7a809778c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1915,6 +1915,9 @@ importers:
       '@tanstack/react-store':
         specifier: ^0.5.5
         version: 0.5.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
+      '@tanstack/router-generator':
+        specifier: workspace:*
+        version: link:../router-generator
       tiny-invariant:
         specifier: ^1.3.3
         version: 1.3.3
@@ -2032,10 +2035,6 @@ importers:
       zod:
         specifier: ^3.23.8
         version: 3.23.8
-    devDependencies:
-      '@tanstack/react-router':
-        specifier: workspace:*
-        version: link:../react-router
 
   packages/router-plugin:
     dependencies:


Test patch:
diff --git a/packages/router-generator/tests/generator/append-and-prepend/routeTree.gen.ts b/packages/router-generator/tests/generator/append-and-prepend/routeTree.gen.ts
deleted file mode 100644
index 82604e5a9..000000000
--- a/packages/router-generator/tests/generator/append-and-prepend/routeTree.gen.ts
+++ /dev/null
@@ -1,86 +0,0 @@
-// prepend1
-
-// prepend2
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as IndexImport } from './routes/index'
-
-// Create/Update Routes
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths: '/'
-  fileRoutesByTo: FileRoutesByTo
-  to: '/'
-  id: '/'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-// append1
-
-// append2
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/custom-tokens/routeTree.gen.ts b/packages/router-generator/tests/generator/custom-tokens/routeTree.gen.ts
deleted file mode 100644
index 5ce44150e..000000000
--- a/packages/router-generator/tests/generator/custom-tokens/routeTree.gen.ts
+++ /dev/null
@@ -1,291 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as PostsR0ut3Import } from './routes/posts/_r0ut3_'
-import { Route as BlogR0ut3Import } from './routes/blog/_r0ut3_'
-import { Route as R1nd3xImport } from './routes/_1nd3x'
-import { Route as Posts1nd3xImport } from './routes/posts/_1nd3x'
-import { Route as Blog1nd3xImport } from './routes/blog/_1nd3x'
-import { Route as BlogSlugImport } from './routes/blog/$slug'
-import { Route as PostsPostId1nd3xImport } from './routes/posts/$postId/_1nd3x'
-import { Route as PostsPostIdDeepImport } from './routes/posts/$postId/deep'
-
-// Create/Update Routes
-
-const PostsR0ut3Route = PostsR0ut3Import.update({
-  path: '/posts',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const BlogR0ut3Route = BlogR0ut3Import.update({
-  path: '/blog',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const R1nd3xRoute = R1nd3xImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const Posts1nd3xRoute = Posts1nd3xImport.update({
-  path: '/',
-  getParentRoute: () => PostsR0ut3Route,
-} as any)
-
-const Blog1nd3xRoute = Blog1nd3xImport.update({
-  path: '/',
-  getParentRoute: () => BlogR0ut3Route,
-} as any)
-
-const BlogSlugRoute = BlogSlugImport.update({
-  path: '/$slug',
-  getParentRoute: () => BlogR0ut3Route,
-} as any)
-
-const PostsPostId1nd3xRoute = PostsPostId1nd3xImport.update({
-  path: '/$postId/',
-  getParentRoute: () => PostsR0ut3Route,
-} as any)
-
-const PostsPostIdDeepRoute = PostsPostIdDeepImport.update({
-  path: '/$postId/deep',
-  getParentRoute: () => PostsR0ut3Route,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof R1nd3xImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog': {
-      id: '/blog'
-      path: '/blog'
-      fullPath: '/blog'
-      preLoaderRoute: typeof BlogR0ut3Import
-      parentRoute: typeof rootRoute
-    }
-    '/posts': {
-      id: '/posts'
-      path: '/posts'
-      fullPath: '/posts'
-      preLoaderRoute: typeof PostsR0ut3Import
-      parentRoute: typeof rootRoute
-    }
-    '/blog/$slug': {
-      id: '/blog/$slug'
-      path: '/$slug'
-      fullPath: '/blog/$slug'
-      preLoaderRoute: typeof BlogSlugImport
-      parentRoute: typeof BlogR0ut3Import
-    }
-    '/blog/': {
-      id: '/blog/'
-      path: '/'
-      fullPath: '/blog/'
-      preLoaderRoute: typeof Blog1nd3xImport
-      parentRoute: typeof BlogR0ut3Import
-    }
-    '/posts/': {
-      id: '/posts/'
-      path: '/'
-      fullPath: '/posts/'
-      preLoaderRoute: typeof Posts1nd3xImport
-      parentRoute: typeof PostsR0ut3Import
-    }
-    '/posts/$postId/deep': {
-      id: '/posts/$postId/deep'
-      path: '/$postId/deep'
-      fullPath: '/posts/$postId/deep'
-      preLoaderRoute: typeof PostsPostIdDeepImport
-      parentRoute: typeof PostsR0ut3Import
-    }
-    '/posts/$postId/': {
-      id: '/posts/$postId/'
-      path: '/$postId'
-      fullPath: '/posts/$postId'
-      preLoaderRoute: typeof PostsPostId1nd3xImport
-      parentRoute: typeof PostsR0ut3Import
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface BlogR0ut3RouteChildren {
-  BlogSlugRoute: typeof BlogSlugRoute
-  Blog1nd3xRoute: typeof Blog1nd3xRoute
-}
-
-const BlogR0ut3RouteChildren: BlogR0ut3RouteChildren = {
-  BlogSlugRoute: BlogSlugRoute,
-  Blog1nd3xRoute: Blog1nd3xRoute,
-}
-
-const BlogR0ut3RouteWithChildren = BlogR0ut3Route._addFileChildren(
-  BlogR0ut3RouteChildren,
-)
-
-interface PostsR0ut3RouteChildren {
-  Posts1nd3xRoute: typeof Posts1nd3xRoute
-  PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
-  PostsPostId1nd3xRoute: typeof PostsPostId1nd3xRoute
-}
-
-const PostsR0ut3RouteChildren: PostsR0ut3RouteChildren = {
-  Posts1nd3xRoute: Posts1nd3xRoute,
-  PostsPostIdDeepRoute: PostsPostIdDeepRoute,
-  PostsPostId1nd3xRoute: PostsPostId1nd3xRoute,
-}
-
-const PostsR0ut3RouteWithChildren = PostsR0ut3Route._addFileChildren(
-  PostsR0ut3RouteChildren,
-)
-
-interface FileRoutesByFullPath {
-  '/': typeof R1nd3xRoute
-  '/blog': typeof BlogR0ut3RouteWithChildren
-  '/posts': typeof PostsR0ut3RouteWithChildren
-  '/blog/$slug': typeof BlogSlugRoute
-  '/blog/': typeof Blog1nd3xRoute
-  '/posts/': typeof Posts1nd3xRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/posts/$postId': typeof PostsPostId1nd3xRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof R1nd3xRoute
-  '/blog/$slug': typeof BlogSlugRoute
-  '/blog': typeof Blog1nd3xRoute
-  '/posts': typeof Posts1nd3xRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/posts/$postId': typeof PostsPostId1nd3xRoute
-}
-
-interface FileRoutesById {
-  '/': typeof R1nd3xRoute
-  '/blog': typeof BlogR0ut3RouteWithChildren
-  '/posts': typeof PostsR0ut3RouteWithChildren
-  '/blog/$slug': typeof BlogSlugRoute
-  '/blog/': typeof Blog1nd3xRoute
-  '/posts/': typeof Posts1nd3xRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/posts/$postId/': typeof PostsPostId1nd3xRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths:
-    | '/'
-    | '/blog'
-    | '/posts'
-    | '/blog/$slug'
-    | '/blog/'
-    | '/posts/'
-    | '/posts/$postId/deep'
-    | '/posts/$postId'
-  fileRoutesByTo: FileRoutesByTo
-  to:
-    | '/'
-    | '/blog/$slug'
-    | '/blog'
-    | '/posts'
-    | '/posts/$postId/deep'
-    | '/posts/$postId'
-  id:
-    | '/'
-    | '/blog'
-    | '/posts'
-    | '/blog/$slug'
-    | '/blog/'
-    | '/posts/'
-    | '/posts/$postId/deep'
-    | '/posts/$postId/'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  R1nd3xRoute: typeof R1nd3xRoute
-  BlogR0ut3Route: typeof BlogR0ut3RouteWithChildren
-  PostsR0ut3Route: typeof PostsR0ut3RouteWithChildren
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  R1nd3xRoute: R1nd3xRoute,
-  BlogR0ut3Route: BlogR0ut3RouteWithChildren,
-  PostsR0ut3Route: PostsR0ut3RouteWithChildren,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/",
-        "/blog",
-        "/posts"
-      ]
-    },
-    "/": {
-      "filePath": "_1nd3x.tsx"
-    },
-    "/blog": {
-      "filePath": "blog/_r0ut3_.tsx",
-      "children": [
-        "/blog/$slug",
-        "/blog/"
-      ]
-    },
-    "/posts": {
-      "filePath": "posts/_r0ut3_.tsx",
-      "children": [
-        "/posts/",
-        "/posts/$postId/deep",
-        "/posts/$postId/"
-      ]
-    },
-    "/blog/$slug": {
-      "filePath": "blog/$slug.tsx",
-      "parent": "/blog"
-    },
-    "/blog/": {
-      "filePath": "blog/_1nd3x.tsx",
-      "parent": "/blog"
-    },
-    "/posts/": {
-      "filePath": "posts/_1nd3x.tsx",
-      "parent": "/posts"
-    },
-    "/posts/$postId/deep": {
-      "filePath": "posts/$postId/deep.tsx",
-      "parent": "/posts"
-    },
-    "/posts/$postId/": {
-      "filePath": "posts/$postId/_1nd3x.tsx",
-      "parent": "/posts"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/file-modification/routeTree.gen.ts b/packages/router-generator/tests/generator/file-modification/routeTree.gen.ts
deleted file mode 100644
index 3d0510d0a..000000000
--- a/packages/router-generator/tests/generator/file-modification/routeTree.gen.ts
+++ /dev/null
@@ -1,165 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-import { createFileRoute } from '@tanstack/react-router'
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as testInitiallyLazyImport } from './routes/(test)/initiallyLazy'
-import { Route as testInitiallyEmptyImport } from './routes/(test)/initiallyEmpty'
-import { Route as testFooImport } from './routes/(test)/foo'
-
-// Create Virtual Routes
-
-const testBarLazyImport = createFileRoute('/(test)/bar')()
-
-// Create/Update Routes
-
-const testBarLazyRoute = testBarLazyImport
-  .update({
-    path: '/bar',
-    getParentRoute: () => rootRoute,
-  } as any)
-  .lazy(() => import('./routes/(test)/bar.lazy').then((d) => d.Route))
-
-const testInitiallyLazyRoute = testInitiallyLazyImport.update({
-  path: '/initiallyLazy',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const testInitiallyEmptyRoute = testInitiallyEmptyImport
-  .update({
-    path: '/initiallyEmpty',
-    getParentRoute: () => rootRoute,
-  } as any)
-  .lazy(() =>
-    import('./routes/(test)/initiallyEmpty.lazy').then((d) => d.Route),
-  )
-
-const testFooRoute = testFooImport.update({
-  path: '/foo',
-  getParentRoute: () => rootRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/(test)/foo': {
-      id: '/foo'
-      path: '/foo'
-      fullPath: '/foo'
-      preLoaderRoute: typeof testFooImport
-      parentRoute: typeof rootRoute
-    }
-    '/(test)/initiallyEmpty': {
-      id: '/initiallyEmpty'
-      path: '/initiallyEmpty'
-      fullPath: '/initiallyEmpty'
-      preLoaderRoute: typeof testInitiallyEmptyImport
-      parentRoute: typeof rootRoute
-    }
-    '/(test)/initiallyLazy': {
-      id: '/initiallyLazy'
-      path: '/initiallyLazy'
-      fullPath: '/initiallyLazy'
-      preLoaderRoute: typeof testInitiallyLazyImport
-      parentRoute: typeof rootRoute
-    }
-    '/(test)/bar': {
-      id: '/bar'
-      path: '/bar'
-      fullPath: '/bar'
-      preLoaderRoute: typeof testBarLazyImport
-      parentRoute: typeof rootRoute
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface FileRoutesByFullPath {
-  '/foo': typeof testFooRoute
-  '/initiallyEmpty': typeof testInitiallyEmptyRoute
-  '/initiallyLazy': typeof testInitiallyLazyRoute
-  '/bar': typeof testBarLazyRoute
-}
-
-interface FileRoutesByTo {
-  '/foo': typeof testFooRoute
-  '/initiallyEmpty': typeof testInitiallyEmptyRoute
-  '/initiallyLazy': typeof testInitiallyLazyRoute
-  '/bar': typeof testBarLazyRoute
-}
-
-interface FileRoutesById {
-  '/foo': typeof testFooRoute
-  '/initiallyEmpty': typeof testInitiallyEmptyRoute
-  '/initiallyLazy': typeof testInitiallyLazyRoute
-  '/bar': typeof testBarLazyRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths: '/foo' | '/initiallyEmpty' | '/initiallyLazy' | '/bar'
-  fileRoutesByTo: FileRoutesByTo
-  to: '/foo' | '/initiallyEmpty' | '/initiallyLazy' | '/bar'
-  id: '/foo' | '/initiallyEmpty' | '/initiallyLazy' | '/bar'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  testFooRoute: typeof testFooRoute
-  testInitiallyEmptyRoute: typeof testInitiallyEmptyRoute
-  testInitiallyLazyRoute: typeof testInitiallyLazyRoute
-  testBarLazyRoute: typeof testBarLazyRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  testFooRoute: testFooRoute,
-  testInitiallyEmptyRoute: testInitiallyEmptyRoute,
-  testInitiallyLazyRoute: testInitiallyLazyRoute,
-  testBarLazyRoute: testBarLazyRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/foo",
-        "/initiallyEmpty",
-        "/initiallyLazy",
-        "/bar"
-      ]
-    },
-    "/foo": {
-      "filePath": "(test)/foo.tsx"
-    },
-    "/initiallyEmpty": {
-      "filePath": "(test)/initiallyEmpty.tsx"
-    },
-    "/initiallyLazy": {
-      "filePath": "(test)/initiallyLazy.tsx"
-    },
-    "/bar": {
-      "filePath": "(test)/bar.lazy.tsx"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/flat/routeTree.gen.ts b/packages/router-generator/tests/generator/flat/routeTree.gen.ts
deleted file mode 100644
index 2bb540ea8..000000000
--- a/packages/router-generator/tests/generator/flat/routeTree.gen.ts
+++ /dev/null
@@ -1,316 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as PostsRouteImport } from './routes/posts.route'
-import { Route as BlogRouteImport } from './routes/blog.route'
-import { Route as IndexImport } from './routes/index'
-import { Route as PostsIndexImport } from './routes/posts.index'
-import { Route as BlogIndexImport } from './routes/blog.index'
-import { Route as BlogStatsImport } from './routes/blog_.stats'
-import { Route as PostsPostIdIndexImport } from './routes/posts.$postId.index'
-import { Route as BlogSlugIndexImport } from './routes/blog.$slug.index'
-import { Route as PostsPostIdDeepImport } from './routes/posts.$postId.deep'
-
-// Create/Update Routes
-
-const PostsRouteRoute = PostsRouteImport.update({
-  path: '/posts',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const BlogRouteRoute = BlogRouteImport.update({
-  path: '/blog',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const PostsIndexRoute = PostsIndexImport.update({
-  path: '/',
-  getParentRoute: () => PostsRouteRoute,
-} as any)
-
-const BlogIndexRoute = BlogIndexImport.update({
-  path: '/',
-  getParentRoute: () => BlogRouteRoute,
-} as any)
-
-const BlogStatsRoute = BlogStatsImport.update({
-  path: '/blog/stats',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const PostsPostIdIndexRoute = PostsPostIdIndexImport.update({
-  path: '/$postId/',
-  getParentRoute: () => PostsRouteRoute,
-} as any)
-
-const BlogSlugIndexRoute = BlogSlugIndexImport.update({
-  path: '/$slug/',
-  getParentRoute: () => BlogRouteRoute,
-} as any)
-
-const PostsPostIdDeepRoute = PostsPostIdDeepImport.update({
-  path: '/$postId/deep',
-  getParentRoute: () => PostsRouteRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog': {
-      id: '/blog'
-      path: '/blog'
-      fullPath: '/blog'
-      preLoaderRoute: typeof BlogRouteImport
-      parentRoute: typeof rootRoute
-    }
-    '/posts': {
-      id: '/posts'
-      path: '/posts'
-      fullPath: '/posts'
-      preLoaderRoute: typeof PostsRouteImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog/stats': {
-      id: '/blog/stats'
-      path: '/blog/stats'
-      fullPath: '/blog/stats'
-      preLoaderRoute: typeof BlogStatsImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog/': {
-      id: '/blog/'
-      path: '/'
-      fullPath: '/blog/'
-      preLoaderRoute: typeof BlogIndexImport
-      parentRoute: typeof BlogRouteImport
-    }
-    '/posts/': {
-      id: '/posts/'
-      path: '/'
-      fullPath: '/posts/'
-      preLoaderRoute: typeof PostsIndexImport
-      parentRoute: typeof PostsRouteImport
-    }
-    '/posts/$postId/deep': {
-      id: '/posts/$postId/deep'
-      path: '/$postId/deep'
-      fullPath: '/posts/$postId/deep'
-      preLoaderRoute: typeof PostsPostIdDeepImport
-      parentRoute: typeof PostsRouteImport
-    }
-    '/blog/$slug/': {
-      id: '/blog/$slug/'
-      path: '/$slug'
-      fullPath: '/blog/$slug'
-      preLoaderRoute: typeof BlogSlugIndexImport
-      parentRoute: typeof BlogRouteImport
-    }
-    '/posts/$postId/': {
-      id: '/posts/$postId/'
-      path: '/$postId'
-      fullPath: '/posts/$postId'
-      preLoaderRoute: typeof PostsPostIdIndexImport
-      parentRoute: typeof PostsRouteImport
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface BlogRouteRouteChildren {
-  BlogIndexRoute: typeof BlogIndexRoute
-  BlogSlugIndexRoute: typeof BlogSlugIndexRoute
-}
-
-const BlogRouteRouteChildren: BlogRouteRouteChildren = {
-  BlogIndexRoute: BlogIndexRoute,
-  BlogSlugIndexRoute: BlogSlugIndexRoute,
-}
-
-const BlogRouteRouteWithChildren = BlogRouteRoute._addFileChildren(
-  BlogRouteRouteChildren,
-)
-
-interface PostsRouteRouteChildren {
-  PostsIndexRoute: typeof PostsIndexRoute
-  PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
-  PostsPostIdIndexRoute: typeof PostsPostIdIndexRoute
-}
-
-const PostsRouteRouteChildren: PostsRouteRouteChildren = {
-  PostsIndexRoute: PostsIndexRoute,
-  PostsPostIdDeepRoute: PostsPostIdDeepRoute,
-  PostsPostIdIndexRoute: PostsPostIdIndexRoute,
-}
-
-const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
-  PostsRouteRouteChildren,
-)
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-  '/blog': typeof BlogRouteRouteWithChildren
-  '/posts': typeof PostsRouteRouteWithChildren
-  '/blog/stats': typeof BlogStatsRoute
-  '/blog/': typeof BlogIndexRoute
-  '/posts/': typeof PostsIndexRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/blog/$slug': typeof BlogSlugIndexRoute
-  '/posts/$postId': typeof PostsPostIdIndexRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-  '/blog/stats': typeof BlogStatsRoute
-  '/blog': typeof BlogIndexRoute
-  '/posts': typeof PostsIndexRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/blog/$slug': typeof BlogSlugIndexRoute
-  '/posts/$postId': typeof PostsPostIdIndexRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-  '/blog': typeof BlogRouteRouteWithChildren
-  '/posts': typeof PostsRouteRouteWithChildren
-  '/blog/stats': typeof BlogStatsRoute
-  '/blog/': typeof BlogIndexRoute
-  '/posts/': typeof PostsIndexRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/blog/$slug/': typeof BlogSlugIndexRoute
-  '/posts/$postId/': typeof PostsPostIdIndexRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths:
-    | '/'
-    | '/blog'
-    | '/posts'
-    | '/blog/stats'
-    | '/blog/'
-    | '/posts/'
-    | '/posts/$postId/deep'
-    | '/blog/$slug'
-    | '/posts/$postId'
-  fileRoutesByTo: FileRoutesByTo
-  to:
-    | '/'
-    | '/blog/stats'
-    | '/blog'
-    | '/posts'
-    | '/posts/$postId/deep'
-    | '/blog/$slug'
-    | '/posts/$postId'
-  id:
-    | '/'
-    | '/blog'
-    | '/posts'
-    | '/blog/stats'
-    | '/blog/'
-    | '/posts/'
-    | '/posts/$postId/deep'
-    | '/blog/$slug/'
-    | '/posts/$postId/'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-  BlogRouteRoute: typeof BlogRouteRouteWithChildren
-  PostsRouteRoute: typeof PostsRouteRouteWithChildren
-  BlogStatsRoute: typeof BlogStatsRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-  BlogRouteRoute: BlogRouteRouteWithChildren,
-  PostsRouteRoute: PostsRouteRouteWithChildren,
-  BlogStatsRoute: BlogStatsRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/",
-        "/blog",
-        "/posts",
-        "/blog/stats"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    },
-    "/blog": {
-      "filePath": "blog.route.tsx",
-      "children": [
-        "/blog/",
-        "/blog/$slug/"
-      ]
-    },
-    "/posts": {
-      "filePath": "posts.route.tsx",
-      "children": [
-        "/posts/",
-        "/posts/$postId/deep",
-        "/posts/$postId/"
-      ]
-    },
-    "/blog/stats": {
-      "filePath": "blog_.stats.tsx"
-    },
-    "/blog/": {
-      "filePath": "blog.index.tsx",
-      "parent": "/blog"
-    },
-    "/posts/": {
-      "filePath": "posts.index.tsx",
-      "parent": "/posts"
-    },
-    "/posts/$postId/deep": {
-      "filePath": "posts.$postId.deep.tsx",
-      "parent": "/posts"
-    },
-    "/blog/$slug/": {
-      "filePath": "blog.$slug.index.tsx",
-      "parent": "/blog"
-    },
-    "/posts/$postId/": {
-      "filePath": "posts.$postId.index.tsx",
-      "parent": "/posts"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/nested-layouts/routeTree.gen.ts b/packages/router-generator/tests/generator/nested-layouts/routeTree.gen.ts
deleted file mode 100644
index 4425bd094..000000000
--- a/packages/router-generator/tests/generator/nested-layouts/routeTree.gen.ts
+++ /dev/null
@@ -1,816 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-import { createFileRoute } from '@tanstack/react-router'
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as LayoutA2Import } from './routes/_layout-a2'
-import { Route as LayoutA1Import } from './routes/_layout-a1'
-import { Route as JestedRouteImport } from './routes/jested/route'
-import { Route as IndexImport } from './routes/index'
-import { Route as NestedLayoutB2Import } from './routes/nested/_layout-b2'
-import { Route as NestedLayoutB1Import } from './routes/nested/_layout-b1'
-import { Route as JestedLayoutB4Import } from './routes/jested/_layout-b4'
-import { Route as JestedLayoutB3Import } from './routes/jested/_layout-b3'
-import { Route as FooBarImport } from './routes/foo/bar'
-import { Route as LayoutA2BarImport } from './routes/_layout-a2/bar'
-import { Route as LayoutA1FooImport } from './routes/_layout-a1/foo'
-import { Route as folderInFolderImport } from './routes/(folder)/in-folder'
-import { Route as FooLayoutB5RouteImport } from './routes/foo/_layout-b5/route'
-import { Route as NestedLayoutB1IndexImport } from './routes/nested/_layout-b1/index'
-import { Route as JestedLayoutB3IndexImport } from './routes/jested/_layout-b3/index'
-import { Route as FooLayoutB5IndexImport } from './routes/foo/_layout-b5/index'
-import { Route as NestedLayoutB2FooImport } from './routes/nested/_layout-b2/foo'
-import { Route as NestedLayoutB1LayoutC1Import } from './routes/nested/_layout-b1/_layout-c1'
-import { Route as JestedLayoutB4FooImport } from './routes/jested/_layout-b4/foo'
-import { Route as JestedLayoutB3LayoutC2Import } from './routes/jested/_layout-b3/_layout-c2'
-import { Route as FooLayoutB5IdImport } from './routes/foo/_layout-b5/$id'
-import { Route as NestedLayoutB1LayoutC1BarImport } from './routes/nested/_layout-b1/_layout-c1/bar'
-import { Route as JestedLayoutB3LayoutC2BarImport } from './routes/jested/_layout-b3/_layout-c2/bar'
-
-// Create Virtual Routes
-
-const NestedImport = createFileRoute('/nested')()
-const FooImport = createFileRoute('/foo')()
-
-// Create/Update Routes
-
-const NestedRoute = NestedImport.update({
-  path: '/nested',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const FooRoute = FooImport.update({
-  path: '/foo',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const LayoutA2Route = LayoutA2Import.update({
-  id: '/_layout-a2',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const LayoutA1Route = LayoutA1Import.update({
-  id: '/_layout-a1',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const JestedRouteRoute = JestedRouteImport.update({
-  path: '/jested',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const NestedLayoutB2Route = NestedLayoutB2Import.update({
-  id: '/_layout-b2',
-  getParentRoute: () => NestedRoute,
-} as any)
-
-const NestedLayoutB1Route = NestedLayoutB1Import.update({
-  id: '/_layout-b1',
-  getParentRoute: () => NestedRoute,
-} as any)
-
-const JestedLayoutB4Route = JestedLayoutB4Import.update({
-  id: '/_layout-b4',
-  getParentRoute: () => JestedRouteRoute,
-} as any)
-
-const JestedLayoutB3Route = JestedLayoutB3Import.update({
-  id: '/_layout-b3',
-  getParentRoute: () => JestedRouteRoute,
-} as any)
-
-const FooBarRoute = FooBarImport.update({
-  path: '/bar',
-  getParentRoute: () => FooRoute,
-} as any)
-
-const LayoutA2BarRoute = LayoutA2BarImport.update({
-  path: '/bar',
-  getParentRoute: () => LayoutA2Route,
-} as any)
-
-const LayoutA1FooRoute = LayoutA1FooImport.update({
-  path: '/foo',
-  getParentRoute: () => LayoutA1Route,
-} as any)
-
-const folderInFolderRoute = folderInFolderImport.update({
-  path: '/in-folder',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const FooLayoutB5RouteRoute = FooLayoutB5RouteImport.update({
-  id: '/foo/_layout-b5',
-  getParentRoute: () => FooRoute,
-} as any)
-
-const NestedLayoutB1IndexRoute = NestedLayoutB1IndexImport.update({
-  path: '/',
-  getParentRoute: () => NestedLayoutB1Route,
-} as any)
-
-const JestedLayoutB3IndexRoute = JestedLayoutB3IndexImport.update({
-  path: '/',
-  getParentRoute: () => JestedLayoutB3Route,
-} as any)
-
-const FooLayoutB5IndexRoute = FooLayoutB5IndexImport.update({
-  path: '/',
-  getParentRoute: () => FooLayoutB5RouteRoute,
-} as any)
-
-const NestedLayoutB2FooRoute = NestedLayoutB2FooImport.update({
-  path: '/foo',
-  getParentRoute: () => NestedLayoutB2Route,
-} as any)
-
-const NestedLayoutB1LayoutC1Route = NestedLayoutB1LayoutC1Import.update({
-  id: '/_layout-c1',
-  getParentRoute: () => NestedLayoutB1Route,
-} as any)
-
-const JestedLayoutB4FooRoute = JestedLayoutB4FooImport.update({
-  path: '/foo',
-  getParentRoute: () => JestedLayoutB4Route,
-} as any)
-
-const JestedLayoutB3LayoutC2Route = JestedLayoutB3LayoutC2Import.update({
-  id: '/_layout-c2',
-  getParentRoute: () => JestedLayoutB3Route,
-} as any)
-
-const FooLayoutB5IdRoute = FooLayoutB5IdImport.update({
-  path: '/$id',
-  getParentRoute: () => FooLayoutB5RouteRoute,
-} as any)
-
-const NestedLayoutB1LayoutC1BarRoute = NestedLayoutB1LayoutC1BarImport.update({
-  path: '/bar',
-  getParentRoute: () => NestedLayoutB1LayoutC1Route,
-} as any)
-
-const JestedLayoutB3LayoutC2BarRoute = JestedLayoutB3LayoutC2BarImport.update({
-  path: '/bar',
-  getParentRoute: () => JestedLayoutB3LayoutC2Route,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-    '/jested': {
-      id: '/jested'
-      path: '/jested'
-      fullPath: '/jested'
-      preLoaderRoute: typeof JestedRouteImport
-      parentRoute: typeof rootRoute
-    }
-    '/_layout-a1': {
-      id: '/_layout-a1'
-      path: ''
-      fullPath: ''
-      preLoaderRoute: typeof LayoutA1Import
-      parentRoute: typeof rootRoute
-    }
-    '/_layout-a2': {
-      id: '/_layout-a2'
-      path: ''
-      fullPath: ''
-      preLoaderRoute: typeof LayoutA2Import
-      parentRoute: typeof rootRoute
-    }
-    '/foo': {
-      id: '/foo'
-      path: '/foo'
-      fullPath: '/foo'
-      preLoaderRoute: typeof FooImport
-      parentRoute: typeof rootRoute
-    }
-    '/foo/_layout-b5': {
-      id: '/foo/_layout-b5'
-      path: '/foo'
-      fullPath: '/foo'
-      preLoaderRoute: typeof FooLayoutB5RouteImport
-      parentRoute: typeof FooRoute
-    }
-    '/(folder)/in-folder': {
-      id: '/in-folder'
-      path: '/in-folder'
-      fullPath: '/in-folder'
-      preLoaderRoute: typeof folderInFolderImport
-      parentRoute: typeof rootRoute
-    }
-    '/_layout-a1/foo': {
-      id: '/_layout-a1/foo'
-      path: '/foo'
-      fullPath: '/foo'
-      preLoaderRoute: typeof LayoutA1FooImport
-      parentRoute: typeof LayoutA1Import
-    }
-    '/_layout-a2/bar': {
-      id: '/_layout-a2/bar'
-      path: '/bar'
-      fullPath: '/bar'
-      preLoaderRoute: typeof LayoutA2BarImport
-      parentRoute: typeof LayoutA2Import
-    }
-    '/foo/bar': {
-      id: '/foo/bar'
-      path: '/bar'
-      fullPath: '/foo/bar'
-      preLoaderRoute: typeof FooBarImport
-      parentRoute: typeof FooImport
-    }
-    '/jested/_layout-b3': {
-      id: '/jested/_layout-b3'
-      path: ''
-      fullPath: '/jested'
-      preLoaderRoute: typeof JestedLayoutB3Import
-      parentRoute: typeof JestedRouteImport
-    }
-    '/jested/_layout-b4': {
-      id: '/jested/_layout-b4'
-      path: ''
-      fullPath: '/jested'
-      preLoaderRoute: typeof JestedLayoutB4Import
-      parentRoute: typeof JestedRouteImport
-    }
-    '/nested': {
-      id: '/nested'
-      path: '/nested'
-      fullPath: '/nested'
-      preLoaderRoute: typeof NestedImport
-      parentRoute: typeof rootRoute
-    }
-    '/nested/_layout-b1': {
-      id: '/nested/_layout-b1'
-      path: '/nested'
-      fullPath: '/nested'
-      preLoaderRoute: typeof NestedLayoutB1Import
-      parentRoute: typeof NestedRoute
-    }
-    '/nested/_layout-b2': {
-      id: '/nested/_layout-b2'
-      path: ''
-      fullPath: '/nested'
-      preLoaderRoute: typeof NestedLayoutB2Import
-      parentRoute: typeof NestedImport
-    }
-    '/foo/_layout-b5/$id': {
-      id: '/foo/_layout-b5/$id'
-      path: '/$id'
-      fullPath: '/foo/$id'
-      preLoaderRoute: typeof FooLayoutB5IdImport
-      parentRoute: typeof FooLayoutB5RouteImport
-    }
-    '/jested/_layout-b3/_layout-c2': {
-      id: '/jested/_layout-b3/_layout-c2'
-      path: ''
-      fullPath: '/jested'
-      preLoaderRoute: typeof JestedLayoutB3LayoutC2Import
-      parentRoute: typeof JestedLayoutB3Import
-    }
-    '/jested/_layout-b4/foo': {
-      id: '/jested/_layout-b4/foo'
-      path: '/foo'
-      fullPath: '/jested/foo'
-      preLoaderRoute: typeof JestedLayoutB4FooImport
-      parentRoute: typeof JestedLayoutB4Import
-    }
-    '/nested/_layout-b1/_layout-c1': {
-      id: '/nested/_layout-b1/_layout-c1'
-      path: ''
-      fullPath: '/nested'
-      preLoaderRoute: typeof NestedLayoutB1LayoutC1Import
-      parentRoute: typeof NestedLayoutB1Import
-    }
-    '/nested/_layout-b2/foo': {
-      id: '/nested/_layout-b2/foo'
-      path: '/foo'
-      fullPath: '/nested/foo'
-      preLoaderRoute: typeof NestedLayoutB2FooImport
-      parentRoute: typeof NestedLayoutB2Import
-    }
-    '/foo/_layout-b5/': {
-      id: '/foo/_layout-b5/'
-      path: '/'
-      fullPath: '/foo/'
-      preLoaderRoute: typeof FooLayoutB5IndexImport
-      parentRoute: typeof FooLayoutB5RouteImport
-    }
-    '/jested/_layout-b3/': {
-      id: '/jested/_layout-b3/'
-      path: '/'
-      fullPath: '/jested/'
-      preLoaderRoute: typeof JestedLayoutB3IndexImport
-      parentRoute: typeof JestedLayoutB3Import
-    }
-    '/nested/_layout-b1/': {
-      id: '/nested/_layout-b1/'
-      path: '/'
-      fullPath: '/nested/'
-      preLoaderRoute: typeof NestedLayoutB1IndexImport
-      parentRoute: typeof NestedLayoutB1Import
-    }
-    '/jested/_layout-b3/_layout-c2/bar': {
-      id: '/jested/_layout-b3/_layout-c2/bar'
-      path: '/bar'
-      fullPath: '/jested/bar'
-      preLoaderRoute: typeof JestedLayoutB3LayoutC2BarImport
-      parentRoute: typeof JestedLayoutB3LayoutC2Import
-    }
-    '/nested/_layout-b1/_layout-c1/bar': {
-      id: '/nested/_layout-b1/_layout-c1/bar'
-      path: '/bar'
-      fullPath: '/nested/bar'
-      preLoaderRoute: typeof NestedLayoutB1LayoutC1BarImport
-      parentRoute: typeof NestedLayoutB1LayoutC1Import
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface JestedLayoutB3LayoutC2RouteChildren {
-  JestedLayoutB3LayoutC2BarRoute: typeof JestedLayoutB3LayoutC2BarRoute
-}
-
-const JestedLayoutB3LayoutC2RouteChildren: JestedLayoutB3LayoutC2RouteChildren =
-  {
-    JestedLayoutB3LayoutC2BarRoute: JestedLayoutB3LayoutC2BarRoute,
-  }
-
-const JestedLayoutB3LayoutC2RouteWithChildren =
-  JestedLayoutB3LayoutC2Route._addFileChildren(
-    JestedLayoutB3LayoutC2RouteChildren,
-  )
-
-interface JestedLayoutB3RouteChildren {
-  JestedLayoutB3LayoutC2Route: typeof JestedLayoutB3LayoutC2RouteWithChildren
-  JestedLayoutB3IndexRoute: typeof JestedLayoutB3IndexRoute
-}
-
-const JestedLayoutB3RouteChildren: JestedLayoutB3RouteChildren = {
-  JestedLayoutB3LayoutC2Route: JestedLayoutB3LayoutC2RouteWithChildren,
-  JestedLayoutB3IndexRoute: JestedLayoutB3IndexRoute,
-}
-
-const JestedLayoutB3RouteWithChildren = JestedLayoutB3Route._addFileChildren(
-  JestedLayoutB3RouteChildren,
-)
-
-interface JestedLayoutB4RouteChildren {
-  JestedLayoutB4FooRoute: typeof JestedLayoutB4FooRoute
-}
-
-const JestedLayoutB4RouteChildren: JestedLayoutB4RouteChildren = {
-  JestedLayoutB4FooRoute: JestedLayoutB4FooRoute,
-}
-
-const JestedLayoutB4RouteWithChildren = JestedLayoutB4Route._addFileChildren(
-  JestedLayoutB4RouteChildren,
-)
-
-interface JestedRouteRouteChildren {
-  JestedLayoutB3Route: typeof JestedLayoutB3RouteWithChildren
-  JestedLayoutB4Route: typeof JestedLayoutB4RouteWithChildren
-}
-
-const JestedRouteRouteChildren: JestedRouteRouteChildren = {
-  JestedLayoutB3Route: JestedLayoutB3RouteWithChildren,
-  JestedLayoutB4Route: JestedLayoutB4RouteWithChildren,
-}
-
-const JestedRouteRouteWithChildren = JestedRouteRoute._addFileChildren(
-  JestedRouteRouteChildren,
-)
-
-interface LayoutA1RouteChildren {
-  LayoutA1FooRoute: typeof LayoutA1FooRoute
-}
-
-const LayoutA1RouteChildren: LayoutA1RouteChildren = {
-  LayoutA1FooRoute: LayoutA1FooRoute,
-}
-
-const LayoutA1RouteWithChildren = LayoutA1Route._addFileChildren(
-  LayoutA1RouteChildren,
-)
-
-interface LayoutA2RouteChildren {
-  LayoutA2BarRoute: typeof LayoutA2BarRoute
-}
-
-const LayoutA2RouteChildren: LayoutA2RouteChildren = {
-  LayoutA2BarRoute: LayoutA2BarRoute,
-}
-
-const LayoutA2RouteWithChildren = LayoutA2Route._addFileChildren(
-  LayoutA2RouteChildren,
-)
-
-interface FooLayoutB5RouteRouteChildren {
-  FooLayoutB5IdRoute: typeof FooLayoutB5IdRoute
-  FooLayoutB5IndexRoute: typeof FooLayoutB5IndexRoute
-}
-
-const FooLayoutB5RouteRouteChildren: FooLayoutB5RouteRouteChildren = {
-  FooLayoutB5IdRoute: FooLayoutB5IdRoute,
-  FooLayoutB5IndexRoute: FooLayoutB5IndexRoute,
-}
-
-const FooLayoutB5RouteRouteWithChildren =
-  FooLayoutB5RouteRoute._addFileChildren(FooLayoutB5RouteRouteChildren)
-
-interface FooRouteChildren {
-  FooLayoutB5RouteRoute: typeof FooLayoutB5RouteRouteWithChildren
-  FooBarRoute: typeof FooBarRoute
-}
-
-const FooRouteChildren: FooRouteChildren = {
-  FooLayoutB5RouteRoute: FooLayoutB5RouteRouteWithChildren,
-  FooBarRoute: FooBarRoute,
-}
-
-const FooRouteWithChildren = FooRoute._addFileChildren(FooRouteChildren)
-
-interface NestedLayoutB1LayoutC1RouteChildren {
-  NestedLayoutB1LayoutC1BarRoute: typeof NestedLayoutB1LayoutC1BarRoute
-}
-
-const NestedLayoutB1LayoutC1RouteChildren: NestedLayoutB1LayoutC1RouteChildren =
-  {
-    NestedLayoutB1LayoutC1BarRoute: NestedLayoutB1LayoutC1BarRoute,
-  }
-
-const NestedLayoutB1LayoutC1RouteWithChildren =
-  NestedLayoutB1LayoutC1Route._addFileChildren(
-    NestedLayoutB1LayoutC1RouteChildren,
-  )
-
-interface NestedLayoutB1RouteChildren {
-  NestedLayoutB1LayoutC1Route: typeof NestedLayoutB1LayoutC1RouteWithChildren
-  NestedLayoutB1IndexRoute: typeof NestedLayoutB1IndexRoute
-}
-
-const NestedLayoutB1RouteChildren: NestedLayoutB1RouteChildren = {
-  NestedLayoutB1LayoutC1Route: NestedLayoutB1LayoutC1RouteWithChildren,
-  NestedLayoutB1IndexRoute: NestedLayoutB1IndexRoute,
-}
-
-const NestedLayoutB1RouteWithChildren = NestedLayoutB1Route._addFileChildren(
-  NestedLayoutB1RouteChildren,
-)
-
-interface NestedLayoutB2RouteChildren {
-  NestedLayoutB2FooRoute: typeof NestedLayoutB2FooRoute
-}
-
-const NestedLayoutB2RouteChildren: NestedLayoutB2RouteChildren = {
-  NestedLayoutB2FooRoute: NestedLayoutB2FooRoute,
-}
-
-const NestedLayoutB2RouteWithChildren = NestedLayoutB2Route._addFileChildren(
-  NestedLayoutB2RouteChildren,
-)
-
-interface NestedRouteChildren {
-  NestedLayoutB1Route: typeof NestedLayoutB1RouteWithChildren
-  NestedLayoutB2Route: typeof NestedLayoutB2RouteWithChildren
-}
-
-const NestedRouteChildren: NestedRouteChildren = {
-  NestedLayoutB1Route: NestedLayoutB1RouteWithChildren,
-  NestedLayoutB2Route: NestedLayoutB2RouteWithChildren,
-}
-
-const NestedRouteWithChildren =
-  NestedRoute._addFileChildren(NestedRouteChildren)
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-  '/jested': typeof JestedLayoutB3LayoutC2RouteWithChildren
-  '': typeof LayoutA2RouteWithChildren
-  '/foo': typeof LayoutA1FooRoute
-  '/in-folder': typeof folderInFolderRoute
-  '/bar': typeof LayoutA2BarRoute
-  '/foo/bar': typeof FooBarRoute
-  '/nested': typeof NestedLayoutB1LayoutC1RouteWithChildren
-  '/foo/$id': typeof FooLayoutB5IdRoute
-  '/jested/foo': typeof JestedLayoutB4FooRoute
-  '/nested/foo': typeof NestedLayoutB2FooRoute
-  '/foo/': typeof FooLayoutB5IndexRoute
-  '/jested/': typeof JestedLayoutB3IndexRoute
-  '/nested/': typeof NestedLayoutB1IndexRoute
-  '/jested/bar': typeof JestedLayoutB3LayoutC2BarRoute
-  '/nested/bar': typeof NestedLayoutB1LayoutC1BarRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-  '/jested': typeof JestedLayoutB3IndexRoute
-  '': typeof LayoutA2RouteWithChildren
-  '/foo': typeof FooLayoutB5IndexRoute
-  '/in-folder': typeof folderInFolderRoute
-  '/bar': typeof LayoutA2BarRoute
-  '/foo/bar': typeof FooBarRoute
-  '/nested': typeof NestedLayoutB1IndexRoute
-  '/foo/$id': typeof FooLayoutB5IdRoute
-  '/jested/foo': typeof JestedLayoutB4FooRoute
-  '/nested/foo': typeof NestedLayoutB2FooRoute
-  '/jested/bar': typeof JestedLayoutB3LayoutC2BarRoute
-  '/nested/bar': typeof NestedLayoutB1LayoutC1BarRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-  '/jested': typeof JestedRouteRouteWithChildren
-  '/_layout-a1': typeof LayoutA1RouteWithChildren
-  '/_layout-a2': typeof LayoutA2RouteWithChildren
-  '/foo': typeof FooRouteWithChildren
-  '/foo/_layout-b5': typeof FooLayoutB5RouteRouteWithChildren
-  '/in-folder': typeof folderInFolderRoute
-  '/_layout-a1/foo': typeof LayoutA1FooRoute
-  '/_layout-a2/bar': typeof LayoutA2BarRoute
-  '/foo/bar': typeof FooBarRoute
-  '/jested/_layout-b3': typeof JestedLayoutB3RouteWithChildren
-  '/jested/_layout-b4': typeof JestedLayoutB4RouteWithChildren
-  '/nested': typeof NestedRouteWithChildren
-  '/nested/_layout-b1': typeof NestedLayoutB1RouteWithChildren
-  '/nested/_layout-b2': typeof NestedLayoutB2RouteWithChildren
-  '/foo/_layout-b5/$id': typeof FooLayoutB5IdRoute
-  '/jested/_layout-b3/_layout-c2': typeof JestedLayoutB3LayoutC2RouteWithChildren
-  '/jested/_layout-b4/foo': typeof JestedLayoutB4FooRoute
-  '/nested/_layout-b1/_layout-c1': typeof NestedLayoutB1LayoutC1RouteWithChildren
-  '/nested/_layout-b2/foo': typeof NestedLayoutB2FooRoute
-  '/foo/_layout-b5/': typeof FooLayoutB5IndexRoute
-  '/jested/_layout-b3/': typeof JestedLayoutB3IndexRoute
-  '/nested/_layout-b1/': typeof NestedLayoutB1IndexRoute
-  '/jested/_layout-b3/_layout-c2/bar': typeof JestedLayoutB3LayoutC2BarRoute
-  '/nested/_layout-b1/_layout-c1/bar': typeof NestedLayoutB1LayoutC1BarRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths:
-    | '/'
-    | '/jested'
-    | ''
-    | '/foo'
-    | '/in-folder'
-    | '/bar'
-    | '/foo/bar'
-    | '/nested'
-    | '/foo/$id'
-    | '/jested/foo'
-    | '/nested/foo'
-    | '/foo/'
-    | '/jested/'
-    | '/nested/'
-    | '/jested/bar'
-    | '/nested/bar'
-  fileRoutesByTo: FileRoutesByTo
-  to:
-    | '/'
-    | '/jested'
-    | ''
-    | '/foo'
-    | '/in-folder'
-    | '/bar'
-    | '/foo/bar'
-    | '/nested'
-    | '/foo/$id'
-    | '/jested/foo'
-    | '/nested/foo'
-    | '/jested/bar'
-    | '/nested/bar'
-  id:
-    | '/'
-    | '/jested'
-    | '/_layout-a1'
-    | '/_layout-a2'
-    | '/foo'
-    | '/foo/_layout-b5'
-    | '/in-folder'
-    | '/_layout-a1/foo'
-    | '/_layout-a2/bar'
-    | '/foo/bar'
-    | '/jested/_layout-b3'
-    | '/jested/_layout-b4'
-    | '/nested'
-    | '/nested/_layout-b1'
-    | '/nested/_layout-b2'
-    | '/foo/_layout-b5/$id'
-    | '/jested/_layout-b3/_layout-c2'
-    | '/jested/_layout-b4/foo'
-    | '/nested/_layout-b1/_layout-c1'
-    | '/nested/_layout-b2/foo'
-    | '/foo/_layout-b5/'
-    | '/jested/_layout-b3/'
-    | '/nested/_layout-b1/'
-    | '/jested/_layout-b3/_layout-c2/bar'
-    | '/nested/_layout-b1/_layout-c1/bar'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-  JestedRouteRoute: typeof JestedRouteRouteWithChildren
-  LayoutA1Route: typeof LayoutA1RouteWithChildren
-  LayoutA2Route: typeof LayoutA2RouteWithChildren
-  FooRoute: typeof FooRouteWithChildren
-  folderInFolderRoute: typeof folderInFolderRoute
-  NestedRoute: typeof NestedRouteWithChildren
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-  JestedRouteRoute: JestedRouteRouteWithChildren,
-  LayoutA1Route: LayoutA1RouteWithChildren,
-  LayoutA2Route: LayoutA2RouteWithChildren,
-  FooRoute: FooRouteWithChildren,
-  folderInFolderRoute: folderInFolderRoute,
-  NestedRoute: NestedRouteWithChildren,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/",
-        "/jested",
-        "/_layout-a1",
-        "/_layout-a2",
-        "/foo",
-        "/in-folder",
-        "/nested"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    },
-    "/jested": {
-      "filePath": "jested/route.tsx",
-      "children": [
-        "/jested/_layout-b3",
-        "/jested/_layout-b4"
-      ]
-    },
-    "/_layout-a1": {
-      "filePath": "_layout-a1.tsx",
-      "children": [
-        "/_layout-a1/foo"
-      ]
-    },
-    "/_layout-a2": {
-      "filePath": "_layout-a2.tsx",
-      "children": [
-        "/_layout-a2/bar"
-      ]
-    },
-    "/foo": {
-      "filePath": "foo/_layout-b5",
-      "children": [
-        "/foo/_layout-b5",
-        "/foo/bar"
-      ]
-    },
-    "/foo/_layout-b5": {
-      "filePath": "foo/_layout-b5/route.tsx",
-      "parent": "/foo",
-      "children": [
-        "/foo/_layout-b5/$id",
-        "/foo/_layout-b5/"
-      ]
-    },
-    "/in-folder": {
-      "filePath": "(folder)/in-folder.tsx"
-    },
-    "/_layout-a1/foo": {
-      "filePath": "_layout-a1/foo.tsx",
-      "parent": "/_layout-a1"
-    },
-    "/_layout-a2/bar": {
-      "filePath": "_layout-a2/bar.tsx",
-      "parent": "/_layout-a2"
-    },
-    "/foo/bar": {
-      "filePath": "foo/bar.tsx",
-      "parent": "/foo"
-    },
-    "/jested/_layout-b3": {
-      "filePath": "jested/_layout-b3.tsx",
-      "parent": "/jested",
-      "children": [
-        "/jested/_layout-b3/_layout-c2",
-        "/jested/_layout-b3/"
-      ]
-    },
-    "/jested/_layout-b4": {
-      "filePath": "jested/_layout-b4.tsx",
-      "parent": "/jested",
-      "children": [
-        "/jested/_layout-b4/foo"
-      ]
-    },
-    "/nested": {
-      "filePath": "nested",
-      "children": [
-        "/nested/_layout-b1",
-        "/nested/_layout-b2"
-      ]
-    },
-    "/nested/_layout-b1": {
-      "filePath": "nested/_layout-b1.tsx",
-      "parent": "/nested",
-      "children": [
-        "/nested/_layout-b1/_layout-c1",
-        "/nested/_layout-b1/"
-      ]
-    },
-    "/nested/_layout-b2": {
-      "filePath": "nested/_layout-b2.tsx",
-      "parent": "/nested",
-      "children": [
-        "/nested/_layout-b2/foo"
-      ]
-    },
-    "/foo/_layout-b5/$id": {
-      "filePath": "foo/_layout-b5/$id.tsx",
-      "parent": "/foo/_layout-b5"
-    },
-    "/jested/_layout-b3/_layout-c2": {
-      "filePath": "jested/_layout-b3/_layout-c2.tsx",
-      "parent": "/jested/_layout-b3",
-      "children": [
-        "/jested/_layout-b3/_layout-c2/bar"
-      ]
-    },
-    "/jested/_layout-b4/foo": {
-      "filePath": "jested/_layout-b4/foo.tsx",
-      "parent": "/jested/_layout-b4"
-    },
-    "/nested/_layout-b1/_layout-c1": {
-      "filePath": "nested/_layout-b1/_layout-c1.tsx",
-      "parent": "/nested/_layout-b1",
-      "children": [
-        "/nested/_layout-b1/_layout-c1/bar"
-      ]
-    },
-    "/nested/_layout-b2/foo": {
-      "filePath": "nested/_layout-b2/foo.tsx",
-      "parent": "/nested/_layout-b2"
-    },
-    "/foo/_layout-b5/": {
-      "filePath": "foo/_layout-b5/index.tsx",
-      "parent": "/foo/_layout-b5"
-    },
-    "/jested/_layout-b3/": {
-      "filePath": "jested/_layout-b3/index.tsx",
-      "parent": "/jested/_layout-b3"
-    },
-    "/nested/_layout-b1/": {
-      "filePath": "nested/_layout-b1/index.tsx",
-      "parent": "/nested/_layout-b1"
-    },
-    "/jested/_layout-b3/_layout-c2/bar": {
-      "filePath": "jested/_layout-b3/_layout-c2/bar.tsx",
-      "parent": "/jested/_layout-b3/_layout-c2"
-    },
-    "/nested/_layout-b1/_layout-c1/bar": {
-      "filePath": "nested/_layout-b1/_layout-c1/bar.tsx",
-      "parent": "/nested/_layout-b1/_layout-c1"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/nested/routeTree.gen.ts b/packages/router-generator/tests/generator/nested/routeTree.gen.ts
deleted file mode 100644
index f0caed391..000000000
--- a/packages/router-generator/tests/generator/nested/routeTree.gen.ts
+++ /dev/null
@@ -1,316 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as PostsRouteImport } from './routes/posts/route'
-import { Route as BlogRouteImport } from './routes/blog/route'
-import { Route as IndexImport } from './routes/index'
-import { Route as PostsIndexImport } from './routes/posts/index'
-import { Route as BlogIndexImport } from './routes/blog/index'
-import { Route as BlogStatsImport } from './routes/blog_/stats'
-import { Route as BlogSlugImport } from './routes/blog/$slug'
-import { Route as PostsPostIdIndexImport } from './routes/posts/$postId/index'
-import { Route as PostsPostIdDeepImport } from './routes/posts/$postId/deep'
-
-// Create/Update Routes
-
-const PostsRouteRoute = PostsRouteImport.update({
-  path: '/posts',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const BlogRouteRoute = BlogRouteImport.update({
-  path: '/blog',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const PostsIndexRoute = PostsIndexImport.update({
-  path: '/',
-  getParentRoute: () => PostsRouteRoute,
-} as any)
-
-const BlogIndexRoute = BlogIndexImport.update({
-  path: '/',
-  getParentRoute: () => BlogRouteRoute,
-} as any)
-
-const BlogStatsRoute = BlogStatsImport.update({
-  path: '/blog/stats',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const BlogSlugRoute = BlogSlugImport.update({
-  path: '/$slug',
-  getParentRoute: () => BlogRouteRoute,
-} as any)
-
-const PostsPostIdIndexRoute = PostsPostIdIndexImport.update({
-  path: '/$postId/',
-  getParentRoute: () => PostsRouteRoute,
-} as any)
-
-const PostsPostIdDeepRoute = PostsPostIdDeepImport.update({
-  path: '/$postId/deep',
-  getParentRoute: () => PostsRouteRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog': {
-      id: '/blog'
-      path: '/blog'
-      fullPath: '/blog'
-      preLoaderRoute: typeof BlogRouteImport
-      parentRoute: typeof rootRoute
-    }
-    '/posts': {
-      id: '/posts'
-      path: '/posts'
-      fullPath: '/posts'
-      preLoaderRoute: typeof PostsRouteImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog/$slug': {
-      id: '/blog/$slug'
-      path: '/$slug'
-      fullPath: '/blog/$slug'
-      preLoaderRoute: typeof BlogSlugImport
-      parentRoute: typeof BlogRouteImport
-    }
-    '/blog/stats': {
-      id: '/blog/stats'
-      path: '/blog/stats'
-      fullPath: '/blog/stats'
-      preLoaderRoute: typeof BlogStatsImport
-      parentRoute: typeof rootRoute
-    }
-    '/blog/': {
-      id: '/blog/'
-      path: '/'
-      fullPath: '/blog/'
-      preLoaderRoute: typeof BlogIndexImport
-      parentRoute: typeof BlogRouteImport
-    }
-    '/posts/': {
-      id: '/posts/'
-      path: '/'
-      fullPath: '/posts/'
-      preLoaderRoute: typeof PostsIndexImport
-      parentRoute: typeof PostsRouteImport
-    }
-    '/posts/$postId/deep': {
-      id: '/posts/$postId/deep'
-      path: '/$postId/deep'
-      fullPath: '/posts/$postId/deep'
-      preLoaderRoute: typeof PostsPostIdDeepImport
-      parentRoute: typeof PostsRouteImport
-    }
-    '/posts/$postId/': {
-      id: '/posts/$postId/'
-      path: '/$postId'
-      fullPath: '/posts/$postId'
-      preLoaderRoute: typeof PostsPostIdIndexImport
-      parentRoute: typeof PostsRouteImport
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface BlogRouteRouteChildren {
-  BlogSlugRoute: typeof BlogSlugRoute
-  BlogIndexRoute: typeof BlogIndexRoute
-}
-
-const BlogRouteRouteChildren: BlogRouteRouteChildren = {
-  BlogSlugRoute: BlogSlugRoute,
-  BlogIndexRoute: BlogIndexRoute,
-}
-
-const BlogRouteRouteWithChildren = BlogRouteRoute._addFileChildren(
-  BlogRouteRouteChildren,
-)
-
-interface PostsRouteRouteChildren {
-  PostsIndexRoute: typeof PostsIndexRoute
-  PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
-  PostsPostIdIndexRoute: typeof PostsPostIdIndexRoute
-}
-
-const PostsRouteRouteChildren: PostsRouteRouteChildren = {
-  PostsIndexRoute: PostsIndexRoute,
-  PostsPostIdDeepRoute: PostsPostIdDeepRoute,
-  PostsPostIdIndexRoute: PostsPostIdIndexRoute,
-}
-
-const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
-  PostsRouteRouteChildren,
-)
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-  '/blog': typeof BlogRouteRouteWithChildren
-  '/posts': typeof PostsRouteRouteWithChildren
-  '/blog/$slug': typeof BlogSlugRoute
-  '/blog/stats': typeof BlogStatsRoute
-  '/blog/': typeof BlogIndexRoute
-  '/posts/': typeof PostsIndexRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/posts/$postId': typeof PostsPostIdIndexRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-  '/blog/$slug': typeof BlogSlugRoute
-  '/blog/stats': typeof BlogStatsRoute
-  '/blog': typeof BlogIndexRoute
-  '/posts': typeof PostsIndexRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/posts/$postId': typeof PostsPostIdIndexRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-  '/blog': typeof BlogRouteRouteWithChildren
-  '/posts': typeof PostsRouteRouteWithChildren
-  '/blog/$slug': typeof BlogSlugRoute
-  '/blog/stats': typeof BlogStatsRoute
-  '/blog/': typeof BlogIndexRoute
-  '/posts/': typeof PostsIndexRoute
-  '/posts/$postId/deep': typeof PostsPostIdDeepRoute
-  '/posts/$postId/': typeof PostsPostIdIndexRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths:
-    | '/'
-    | '/blog'
-    | '/posts'
-    | '/blog/$slug'
-    | '/blog/stats'
-    | '/blog/'
-    | '/posts/'
-    | '/posts/$postId/deep'
-    | '/posts/$postId'
-  fileRoutesByTo: FileRoutesByTo
-  to:
-    | '/'
-    | '/blog/$slug'
-    | '/blog/stats'
-    | '/blog'
-    | '/posts'
-    | '/posts/$postId/deep'
-    | '/posts/$postId'
-  id:
-    | '/'
-    | '/blog'
-    | '/posts'
-    | '/blog/$slug'
-    | '/blog/stats'
-    | '/blog/'
-    | '/posts/'
-    | '/posts/$postId/deep'
-    | '/posts/$postId/'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-  BlogRouteRoute: typeof BlogRouteRouteWithChildren
-  PostsRouteRoute: typeof PostsRouteRouteWithChildren
-  BlogStatsRoute: typeof BlogStatsRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-  BlogRouteRoute: BlogRouteRouteWithChildren,
-  PostsRouteRoute: PostsRouteRouteWithChildren,
-  BlogStatsRoute: BlogStatsRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/",
-        "/blog",
-        "/posts",
-        "/blog/stats"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    },
-    "/blog": {
-      "filePath": "blog/route.tsx",
-      "children": [
-        "/blog/$slug",
-        "/blog/"
-      ]
-    },
-    "/posts": {
-      "filePath": "posts/route.tsx",
-      "children": [
-        "/posts/",
-        "/posts/$postId/deep",
-        "/posts/$postId/"
-      ]
-    },
-    "/blog/$slug": {
-      "filePath": "blog/$slug.tsx",
-      "parent": "/blog"
-    },
-    "/blog/stats": {
-      "filePath": "blog_/stats.tsx"
-    },
-    "/blog/": {
-      "filePath": "blog/index.tsx",
-      "parent": "/blog"
-    },
-    "/posts/": {
-      "filePath": "posts/index.tsx",
-      "parent": "/posts"
-    },
-    "/posts/$postId/deep": {
-      "filePath": "posts/$postId/deep.tsx",
-      "parent": "/posts"
-    },
-    "/posts/$postId/": {
-      "filePath": "posts/$postId/index.tsx",
-      "parent": "/posts"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/no-manifest/routeTree.gen.ts b/packages/router-generator/tests/generator/no-manifest/routeTree.gen.ts
deleted file mode 100644
index 60d1f4869..000000000
--- a/packages/router-generator/tests/generator/no-manifest/routeTree.gen.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as IndexImport } from './routes/index'
-
-// Create/Update Routes
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths: '/'
-  fileRoutesByTo: FileRoutesByTo
-  to: '/'
-  id: '/'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
diff --git a/packages/router-generator/tests/generator/route-groups/routeTree.gen.ts b/packages/router-generator/tests/generator/route-groups/routeTree.gen.ts
deleted file mode 100644
index 5234ee5fe..000000000
--- a/packages/router-generator/tests/generator/route-groups/routeTree.gen.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as fooAsdfbarIdImport } from './routes/(foo)/asdf/(bar)/$id'
-
-// Create/Update Routes
-
-const fooAsdfbarIdRoute = fooAsdfbarIdImport.update({
-  path: '/asdf/$id',
-  getParentRoute: () => rootRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/(foo)/asdf/(bar)/$id': {
-      id: '/asdf/$id'
-      path: '/asdf/$id'
-      fullPath: '/asdf/$id'
-      preLoaderRoute: typeof fooAsdfbarIdImport
-      parentRoute: typeof rootRoute
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface FileRoutesByFullPath {
-  '/asdf/$id': typeof fooAsdfbarIdRoute
-}
-
-interface FileRoutesByTo {
-  '/asdf/$id': typeof fooAsdfbarIdRoute
-}
-
-interface FileRoutesById {
-  '/asdf/$id': typeof fooAsdfbarIdRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths: '/asdf/$id'
-  fileRoutesByTo: FileRoutesByTo
-  to: '/asdf/$id'
-  id: '/asdf/$id'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  fooAsdfbarIdRoute: typeof fooAsdfbarIdRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  fooAsdfbarIdRoute: fooAsdfbarIdRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/asdf/$id"
-      ]
-    },
-    "/asdf/$id": {
-      "filePath": "(foo)/asdf/(bar)/$id.tsx"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/single-level/routeTree.gen.ts b/packages/router-generator/tests/generator/single-level/routeTree.gen.ts
deleted file mode 100644
index 75ec72d07..000000000
--- a/packages/router-generator/tests/generator/single-level/routeTree.gen.ts
+++ /dev/null
@@ -1,110 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as PostsImport } from './routes/posts'
-import { Route as IndexImport } from './routes/index'
-
-// Create/Update Routes
-
-const PostsRoute = PostsImport.update({
-  path: '/posts',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-    '/posts': {
-      id: '/posts'
-      path: '/posts'
-      fullPath: '/posts'
-      preLoaderRoute: typeof PostsImport
-      parentRoute: typeof rootRoute
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-  '/posts': typeof PostsRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-  '/posts': typeof PostsRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-  '/posts': typeof PostsRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths: '/' | '/posts'
-  fileRoutesByTo: FileRoutesByTo
-  to: '/' | '/posts'
-  id: '/' | '/posts'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-  PostsRoute: typeof PostsRoute
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-  PostsRoute: PostsRoute,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/",
-        "/posts"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    },
-    "/posts": {
-      "filePath": "posts.tsx"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/virtual-inside-nested/routeTree.gen.ts b/packages/router-generator/tests/generator/virtual-inside-nested/routeTree.gen.ts
deleted file mode 100644
index 749d5a95c..000000000
--- a/packages/router-generator/tests/generator/virtual-inside-nested/routeTree.gen.ts
+++ /dev/null
@@ -1,166 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/__root'
-import { Route as IndexImport } from './routes/index'
-import { Route as FooBarImport } from './routes/foo/bar'
-import { Route as fooBarDetailsImport } from './routes/foo/bar/details'
-import { Route as fooBarHomeImport } from './routes/foo/bar/home'
-
-// Create/Update Routes
-
-const IndexRoute = IndexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const FooBarRoute = FooBarImport.update({
-  path: '/foo/bar',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const fooBarDetailsRoute = fooBarDetailsImport.update({
-  path: '/$id',
-  getParentRoute: () => FooBarRoute,
-} as any)
-
-const fooBarHomeRoute = fooBarHomeImport.update({
-  path: '/',
-  getParentRoute: () => FooBarRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof IndexImport
-      parentRoute: typeof rootRoute
-    }
-    '/foo/bar': {
-      id: '/foo/bar'
-      path: '/foo/bar'
-      fullPath: '/foo/bar'
-      preLoaderRoute: typeof FooBarImport
-      parentRoute: typeof rootRoute
-    }
-    '/foo/bar/': {
-      id: '/foo/bar/'
-      path: '/'
-      fullPath: '/foo/bar/'
-      preLoaderRoute: typeof fooBarHomeImport
-      parentRoute: typeof FooBarImport
-    }
-    '/foo/bar/$id': {
-      id: '/foo/bar/$id'
-      path: '/$id'
-      fullPath: '/foo/bar/$id'
-      preLoaderRoute: typeof fooBarDetailsImport
-      parentRoute: typeof FooBarImport
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface FooBarRouteChildren {
-  fooBarHomeRoute: typeof fooBarHomeRoute
-  fooBarDetailsRoute: typeof fooBarDetailsRoute
-}
-
-const FooBarRouteChildren: FooBarRouteChildren = {
-  fooBarHomeRoute: fooBarHomeRoute,
-  fooBarDetailsRoute: fooBarDetailsRoute,
-}
-
-const FooBarRouteWithChildren =
-  FooBarRoute._addFileChildren(FooBarRouteChildren)
-
-interface FileRoutesByFullPath {
-  '/': typeof IndexRoute
-  '/foo/bar': typeof FooBarRouteWithChildren
-  '/foo/bar/': typeof fooBarHomeRoute
-  '/foo/bar/$id': typeof fooBarDetailsRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof IndexRoute
-  '/foo/bar': typeof fooBarHomeRoute
-  '/foo/bar/$id': typeof fooBarDetailsRoute
-}
-
-interface FileRoutesById {
-  '/': typeof IndexRoute
-  '/foo/bar': typeof FooBarRouteWithChildren
-  '/foo/bar/': typeof fooBarHomeRoute
-  '/foo/bar/$id': typeof fooBarDetailsRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths: '/' | '/foo/bar' | '/foo/bar/' | '/foo/bar/$id'
-  fileRoutesByTo: FileRoutesByTo
-  to: '/' | '/foo/bar' | '/foo/bar/$id'
-  id: '/' | '/foo/bar' | '/foo/bar/' | '/foo/bar/$id'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  IndexRoute: typeof IndexRoute
-  FooBarRoute: typeof FooBarRouteWithChildren
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  IndexRoute: IndexRoute,
-  FooBarRoute: FooBarRouteWithChildren,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "__root.tsx",
-      "children": [
-        "/",
-        "/foo/bar"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    },
-    "/foo/bar": {
-      "filePath": "foo/bar.tsx",
-      "children": [
-        "/foo/bar/",
-        "/foo/bar/$id"
-      ]
-    },
-    "/foo/bar/": {
-      "filePath": "foo/bar/home.tsx",
-      "parent": "/foo/bar"
-    },
-    "/foo/bar/$id": {
-      "filePath": "foo/bar/details.tsx",
-      "parent": "/foo/bar"
-    }
-  }
-}
-ROUTE_MANIFEST_END */
diff --git a/packages/router-generator/tests/generator/virtual/routeTree.gen.ts b/packages/router-generator/tests/generator/virtual/routeTree.gen.ts
deleted file mode 100644
index 57ec5c5ea..000000000
--- a/packages/router-generator/tests/generator/virtual/routeTree.gen.ts
+++ /dev/null
@@ -1,354 +0,0 @@
-/* prettier-ignore-start */
-
-/* eslint-disable */
-
-// @ts-nocheck
-
-// noinspection JSUnusedGlobalSymbols
-
-// This file is auto-generated by TanStack Router
-
-// Import Routes
-
-import { Route as rootRoute } from './routes/root'
-import { Route as layoutImport } from './routes/layout'
-import { Route as indexImport } from './routes/index'
-import { Route as dbDashboardImport } from './routes/db/dashboard'
-import { Route as HelloIndexImport } from './routes/subtree/index'
-import { Route as dbDashboardInvoicesImport } from './routes/db/dashboard-invoices'
-import { Route as dbDashboardIndexImport } from './routes/db/dashboard-index'
-import { Route as HelloFooIndexImport } from './routes/subtree/foo/index'
-import { Route as HelloFooIdImport } from './routes/subtree/foo/$id'
-import { Route as dbInvoiceDetailImport } from './routes/db/invoice-detail'
-import { Route as dbInvoicesIndexImport } from './routes/db/invoices-index'
-
-// Create/Update Routes
-
-const layoutRoute = layoutImport.update({
-  id: '/_layout',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const indexRoute = indexImport.update({
-  path: '/',
-  getParentRoute: () => rootRoute,
-} as any)
-
-const dbDashboardRoute = dbDashboardImport.update({
-  path: '/dashboard',
-  getParentRoute: () => layoutRoute,
-} as any)
-
-const HelloIndexRoute = HelloIndexImport.update({
-  path: '/hello/',
-  getParentRoute: () => layoutRoute,
-} as any)
-
-const dbDashboardInvoicesRoute = dbDashboardInvoicesImport.update({
-  path: '/invoices',
-  getParentRoute: () => dbDashboardRoute,
-} as any)
-
-const dbDashboardIndexRoute = dbDashboardIndexImport.update({
-  path: '/',
-  getParentRoute: () => dbDashboardRoute,
-} as any)
-
-const HelloFooIndexRoute = HelloFooIndexImport.update({
-  path: '/hello/foo/',
-  getParentRoute: () => layoutRoute,
-} as any)
-
-const HelloFooIdRoute = HelloFooIdImport.update({
-  path: '/hello/foo/$id',
-  getParentRoute: () => layoutRoute,
-} as any)
-
-const dbInvoiceDetailRoute = dbInvoiceDetailImport.update({
-  path: '/$id',
-  getParentRoute: () => dbDashboardInvoicesRoute,
-} as any)
-
-const dbInvoicesIndexRoute = dbInvoicesIndexImport.update({
-  path: '/',
-  getParentRoute: () => dbDashboardInvoicesRoute,
-} as any)
-
-// Populate the FileRoutesByPath interface
-
-declare module '@tanstack/react-router' {
-  interface FileRoutesByPath {
-    '/': {
-      id: '/'
-      path: '/'
-      fullPath: '/'
-      preLoaderRoute: typeof indexImport
-      parentRoute: typeof rootRoute
-    }
-    '/_layout': {
-      id: '/_layout'
-      path: ''
-      fullPath: ''
-      preLoaderRoute: typeof layoutImport
-      parentRoute: typeof rootRoute
-    }
-    '/_layout/dashboard': {
-      id: '/_layout/dashboard'
-      path: '/dashboard'
-      fullPath: '/dashboard'
-      preLoaderRoute: typeof dbDashboardImport
-      parentRoute: typeof layoutImport
-    }
-    '/_layout/dashboard/': {
-      id: '/_layout/dashboard/'
-      path: '/'
-      fullPath: '/dashboard/'
-      preLoaderRoute: typeof dbDashboardIndexImport
-      parentRoute: typeof dbDashboardImport
-    }
-    '/_layout/dashboard/invoices': {
-      id: '/_layout/dashboard/invoices'
-      path: '/invoices'
-      fullPath: '/dashboard/invoices'
-      preLoaderRoute: typeof dbDashboardInvoicesImport
-      parentRoute: typeof dbDashboardImport
-    }
-    '/_layout/hello/': {
-      id: '/_layout/hello/'
-      path: '/hello'
-      fullPath: '/hello'
-      preLoaderRoute: typeof HelloIndexImport
-      parentRoute: typeof layoutImport
-    }
-    '/_layout/dashboard/invoices/': {
-      id: '/_layout/dashboard/invoices/'
-      path: '/'
-      fullPath: '/dashboard/invoices/'
-      preLoaderRoute: typeof dbInvoicesIndexImport
-      parentRoute: typeof dbDashboardInvoicesImport
-    }
-    '/_layout/dashboard/invoices/$id': {
-      id: '/_layout/dashboard/invoices/$id'
-      path: '/$id'
-      fullPath: '/dashboard/invoices/$id'
-      preLoaderRoute: typeof dbInvoiceDetailImport
-      parentRoute: typeof dbDashboardInvoicesImport
-    }
-    '/_layout/hello/foo/$id': {
-      id: '/_layout/hello/foo/$id'
-      path: '/hello/foo/$id'
-      fullPath: '/hello/foo/$id'
-      preLoaderRoute: typeof HelloFooIdImport
-      parentRoute: typeof layoutImport
-    }
-    '/_layout/hello/foo/': {
-      id: '/_layout/hello/foo/'
-      path: '/hello/foo'
-      fullPath: '/hello/foo'
-      preLoaderRoute: typeof HelloFooIndexImport
-      parentRoute: typeof layoutImport
-    }
-  }
-}
-
-// Create and export the route tree
-
-interface dbDashboardInvoicesRouteChildren {
-  dbInvoicesIndexRoute: typeof dbInvoicesIndexRoute
-  dbInvoiceDetailRoute: typeof dbInvoiceDetailRoute
-}
-
-const dbDashboardInvoicesRouteChildren: dbDashboardInvoicesRouteChildren = {
-  dbInvoicesIndexRoute: dbInvoicesIndexRoute,
-  dbInvoiceDetailRoute: dbInvoiceDetailRoute,
-}
-
-const dbDashboardInvoicesRouteWithChildren =
-  dbDashboardInvoicesRoute._addFileChildren(dbDashboardInvoicesRouteChildren)
-
-interface dbDashboardRouteChildren {
-  dbDashboardIndexRoute: typeof dbDashboardIndexRoute
-  dbDashboardInvoicesRoute: typeof dbDashboardInvoicesRouteWithChildren
-}
-
-const dbDashboardRouteChildren: dbDashboardRouteChildren = {
-  dbDashboardIndexRoute: dbDashboardIndexRoute,
-  dbDashboardInvoicesRoute: dbDashboardInvoicesRouteWithChildren,
-}
-
-const dbDashboardRouteWithChildren = dbDashboardRoute._addFileChildren(
-  dbDashboardRouteChildren,
-)
-
-interface layoutRouteChildren {
-  dbDashboardRoute: typeof dbDashboardRouteWithChildren
-  HelloIndexRoute: typeof HelloIndexRoute
-  HelloFooIdRoute: typeof HelloFooIdRoute
-  HelloFooIndexRoute: typeof HelloFooIndexRoute
-}
-
-const layoutRouteChildren: layoutRouteChildren = {
-  dbDashboardRoute: dbDashboardRouteWithChildren,
-  HelloIndexRoute: HelloIndexRoute,
-  HelloFooIdRoute: HelloFooIdRoute,
-  HelloFooIndexRoute: HelloFooIndexRoute,
-}
-
-const layoutRouteWithChildren =
-  layoutRoute._addFileChildren(layoutRouteChildren)
-
-interface FileRoutesByFullPath {
-  '/': typeof indexRoute
-  '': typeof layoutRouteWithChildren
-  '/dashboard': typeof dbDashboardRouteWithChildren
-  '/dashboard/': typeof dbDashboardIndexRoute
-  '/dashboard/invoices': typeof dbDashboardInvoicesRouteWithChildren
-  '/hello': typeof HelloIndexRoute
-  '/dashboard/invoices/': typeof dbInvoicesIndexRoute
-  '/dashboard/invoices/$id': typeof dbInvoiceDetailRoute
-  '/hello/foo/$id': typeof HelloFooIdRoute
-  '/hello/foo': typeof HelloFooIndexRoute
-}
-
-interface FileRoutesByTo {
-  '/': typeof indexRoute
-  '': typeof layoutRouteWithChildren
-  '/dashboard': typeof dbDashboardIndexRoute
-  '/hello': typeof HelloIndexRoute
-  '/dashboard/invoices': typeof dbInvoicesIndexRoute
-  '/dashboard/invoices/$id': typeof dbInvoiceDetailRoute
-  '/hello/foo/$id': typeof HelloFooIdRoute
-  '/hello/foo': typeof HelloFooIndexRoute
-}
-
-interface FileRoutesById {
-  '/': typeof indexRoute
-  '/_layout': typeof layoutRouteWithChildren
-  '/_layout/dashboard': typeof dbDashboardRouteWithChildren
-  '/_layout/dashboard/': typeof dbDashboardIndexRoute
-  '/_layout/dashboard/invoices': typeof dbDashboardInvoicesRouteWithChildren
-  '/_layout/hello/': typeof HelloIndexRoute
-  '/_layout/dashboard/invoices/': typeof dbInvoicesIndexRoute
-  '/_layout/dashboard/invoices/$id': typeof dbInvoiceDetailRoute
-  '/_layout/hello/foo/$id': typeof HelloFooIdRoute
-  '/_layout/hello/foo/': typeof HelloFooIndexRoute
-}
-
-interface FileRouteTypes {
-  fileRoutesByFullPath: FileRoutesByFullPath
-  fullPaths:
-    | '/'
-    | ''
-    | '/dashboard'
-    | '/dashboard/'
-    | '/dashboard/invoices'
-    | '/hello'
-    | '/dashboard/invoices/'
-    | '/dashboard/invoices/$id'
-    | '/hello/foo/$id'
-    | '/hello/foo'
-  fileRoutesByTo: FileRoutesByTo
-  to:
-    | '/'
-    | ''
-    | '/dashboard'
-    | '/hello'
-    | '/dashboard/invoices'
-    | '/dashboard/invoices/$id'
-    | '/hello/foo/$id'
-    | '/hello/foo'
-  id:
-    | '/'
-    | '/_layout'
-    | '/_layout/dashboard'
-    | '/_layout/dashboard/'
-    | '/_layout/dashboard/invoices'
-    | '/_layout/hello/'
-    | '/_layout/dashboard/invoices/'
-    | '/_layout/dashboard/invoices/$id'
-    | '/_layout/hello/foo/$id'
-    | '/_layout/hello/foo/'
-  fileRoutesById: FileRoutesById
-}
-
-interface RootRouteChildren {
-  indexRoute: typeof indexRoute
-  layoutRoute: typeof layoutRouteWithChildren
-}
-
-const rootRouteChildren: RootRouteChildren = {
-  indexRoute: indexRoute,
-  layoutRoute: layoutRouteWithChildren,
-}
-
-export const routeTree = rootRoute
-  ._addFileChildren(rootRouteChildren)
-  ._addFileTypes<FileRouteTypes>()
-
-/* prettier-ignore-end */
-
-/* ROUTE_MANIFEST_START
-{
-  "routes": {
-    "__root__": {
-      "filePath": "root.tsx",
-      "children": [
-        "/",
-        "/_layout"
-      ]
-    },
-    "/": {
-      "filePath": "index.tsx"
-    },
-    "/_layout": {
-      "filePath": "layout.tsx",
-      "children": [
-        "/_layout/dashboard",
-        "/_layout/hello/",
-        "/_layout/hello/foo/$id",
-        "/_layout/hello/foo/"
-      ]
-    },
-    "/_layout/dashboard": {
-      "filePath": "db/dashboard.tsx",
-      "parent": "/_layout",
-      "children": [
-        "/_layout/dashboard/",
-        "/_layout/dashboard/invoices"
-      ]
-    },
-    "/_layout/dashboard/": {
-      "filePath": "db/dashboard-index.tsx",
-      "parent": "/_layout/dashboard"
-    },
-    "/_layout/dashboard/invoices": {
-      "filePath": "db/dashboard-invoices.tsx",
-      "parent": "/_layout/dashboard",
-      "children": [
-        "/_layout/dashboard/invoices/",
-        "/_layout/dashboard/invoices/$id"
-      ]
-    },
-    "/_layout/hello/": {
-      "filePath": "subtree/index.tsx",
-      "parent": "/_layout"
-    },
-    "/_layout/dashboard/invoices/": {
-      "filePath": "db/invoices-index.tsx",
-      "parent": "/_layout/dashboard/invoices"
-    },
-    "/_layout/dashboard/invoices/$id": {
-      "filePath": "db/invoice-detail.tsx",
-      "parent": "/_layout/dashboard/invoices"
-    },
-    "/_layout/hello/foo/$id": {
-      "filePath": "subtree/foo/$id.tsx",
-      "parent": "/_layout"
-    },
-    "/_layout/hello/foo/": {
-      "filePath": "subtree/foo/index.tsx",
-      "parent": "/_layout"
-    }
-  }
-}
-ROUTE_MANIFEST_END */