beaver-build 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +41 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -268,7 +268,7 @@ var init_vite_config = __esm({
268
268
  const tailwindPlugin = hasTailwind ? `
269
269
  tailwindcss(),` : "";
270
270
  const tanstackPlugin = hasTanstack ? `
271
- TanStackRouterVite({ routesDirectory: './src/routes' }),` : "";
271
+ TanStackRouterVite({ routesDirectory: './src/routes', generatedRouteTree: './src/routes/routeTree.gen.ts' }),` : "";
272
272
  return `import { defineConfig } from 'vite';
273
273
  import react from '@vitejs/plugin-react';
274
274
  ${tailwindImport}${tanstackImport}
@@ -473,10 +473,45 @@ export default App;
473
473
  });
474
474
 
475
475
  // src/scaffold/react-vite/templates/router.ts
476
- var rootRouteTemplate, indexRouteTemplate;
476
+ var routeTreeGenTemplate, rootRouteTemplate, indexRouteTemplate;
477
477
  var init_router = __esm({
478
478
  "src/scaffold/react-vite/templates/router.ts"() {
479
479
  "use strict";
480
+ routeTreeGenTemplate = () => `/* eslint-disable */
481
+
482
+ // @ts-nocheck
483
+
484
+ // noinspection JSUnusedGlobalSymbols
485
+
486
+ // This file was automatically generated by TanStack Router.
487
+ // You should NOT make direct changes to this file.
488
+ // Any changes made to this file will be overwritten the next time the route tree is regenerated.
489
+
490
+ import { Route as rootRouteImport } from './__root'
491
+ import { Route as IndexRouteImport } from './index'
492
+
493
+ const rootRouteChildren = {
494
+ IndexRoute: IndexRouteImport,
495
+ }
496
+
497
+ export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)
498
+
499
+ /* ROUTE_MANIFEST_START
500
+ {
501
+ "routes": {
502
+ "__root__": {
503
+ "filePath": "__root.tsx",
504
+ "children": [
505
+ "/"
506
+ ]
507
+ },
508
+ "/": {
509
+ "filePath": "index.tsx"
510
+ }
511
+ }
512
+ }
513
+ ROUTE_MANIFEST_END */
514
+ `;
480
515
  rootRouteTemplate = () => `import { createRootRoute, Outlet } from '@tanstack/react-router';
481
516
  import { TanStackRouterDevtools } from '@tanstack/router-devtools';
482
517
 
@@ -1073,7 +1108,8 @@ var init_fsd_layout = __esm({
1073
1108
  if (hasRouter) {
1074
1109
  files.push(
1075
1110
  { relativePath: "src/routes/__root.tsx", content: rootRouteTemplate() },
1076
- { relativePath: "src/routes/index.tsx", content: indexRouteTemplate() }
1111
+ { relativePath: "src/routes/index.tsx", content: indexRouteTemplate() },
1112
+ { relativePath: "src/routes/routeTree.gen.ts", content: routeTreeGenTemplate() }
1077
1113
  );
1078
1114
  }
1079
1115
  if (hasZustand) {
@@ -1172,7 +1208,8 @@ var init_bpr_layout = __esm({
1172
1208
  if (hasRouter) {
1173
1209
  files.push(
1174
1210
  { relativePath: "src/routes/__root.tsx", content: rootRouteTemplate() },
1175
- { relativePath: "src/routes/index.tsx", content: indexRouteTemplate() }
1211
+ { relativePath: "src/routes/index.tsx", content: indexRouteTemplate() },
1212
+ { relativePath: "src/routes/routeTree.gen.ts", content: routeTreeGenTemplate() }
1176
1213
  );
1177
1214
  }
1178
1215
  if (hasZustand) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beaver-build",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Interactive CLI tool for scaffolding modern web projects with production-ready configurations",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",