16 lines · 765 B · TypeScript
RawDownload
// Regenerate this package's committed routeTree.gen.ts from tsr.routes.ts —// the same virtual tree consumers compose via consoleRoutes(). Run with// `bun run routes:gen` after changing the console route contract; the apps// each have their own `routes:gen` for their trees.import { fileURLToPath } from "node:url"; import { generateRouteTree } from "../src/route-tree-gen";import { routes } from "../tsr.routes"; await generateRouteTree({  root: fileURLToPath(new URL("..", import.meta.url)),  routesDirectory: fileURLToPath(new URL("../src/routes", import.meta.url)),  generatedRouteTree: fileURLToPath(new URL("../src/routes/routeTree.gen.ts", import.meta.url)),  virtualRouteConfig: routes,});console.log("generated packages/react route tree");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t