@tanstack/router-generator
Advanced tools
Comparing version
@@ -262,3 +262,3 @@ import path from "node:path"; | ||
{ | ||
tsrImports: "import { createAPIFileRoute } from '@tanstack/start/api';", | ||
tsrImports: "import { createAPIFileRoute } from '@tanstack/react-start/api';", | ||
tsrPath: escapedRoutePath, | ||
@@ -265,0 +265,0 @@ tsrExportStart: `export const ${CONSTANTS.APIRouteExportVariable} = createAPIFileRoute('${escapedRoutePath}')(`, |
@@ -108,3 +108,3 @@ import { format } from "./utils.js"; | ||
const defaultAPIRouteTemplate = [ | ||
'import { json } from "@tanstack/start";\n', | ||
'import { json } from "@tanstack/react-start";\n', | ||
"%%tsrImports%%", | ||
@@ -111,0 +111,0 @@ "\n\n", |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.111.11", | ||
"version": "1.111.12", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -393,3 +393,3 @@ import path from 'node:path' | ||
tsrImports: | ||
"import { createAPIFileRoute } from '@tanstack/start/api';", | ||
"import { createAPIFileRoute } from '@tanstack/react-start/api';", | ||
tsrPath: escapedRoutePath, | ||
@@ -396,0 +396,0 @@ tsrExportStart: `export const ${CONSTANTS.APIRouteExportVariable} = createAPIFileRoute('${escapedRoutePath}')(`, |
@@ -163,3 +163,3 @@ import { format } from './utils' | ||
export const defaultAPIRouteTemplate = [ | ||
'import { json } from "@tanstack/start";\n', | ||
'import { json } from "@tanstack/react-start";\n', | ||
'%%tsrImports%%', | ||
@@ -166,0 +166,0 @@ '\n\n', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
404862
0.01%