@tanstack/router-generator
Advanced tools
Comparing version 1.16.1 to 1.16.2
@@ -33,4 +33,4 @@ import path from "path"; | ||
let routePath = cleanPath(`/${filePathNoExt.split(".").join("/")}`) || ""; | ||
if (routeFileIgnorePrefix) { | ||
routePath.replaceAll(routeFileIgnorePrefix, ""); | ||
if (routeFilePrefix) { | ||
routePath = routePath.replace(routeFilePrefix, ""); | ||
} | ||
@@ -111,3 +111,5 @@ const variableName = routePathToVariable(routePath); | ||
const beforeRouteNodes = await getRouteNodes(config); | ||
const rootRouteNode = beforeRouteNodes.find((d) => d.routePath === `/${rootPathId}`); | ||
const rootRouteNode = beforeRouteNodes.find( | ||
(d) => d.routePath === `/${rootPathId}` | ||
); | ||
const preRouteNodes = multiSortBy(beforeRouteNodes, [ | ||
@@ -114,0 +116,0 @@ (d) => d.routePath === "/" ? -1 : 1, |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.16.1", | ||
"version": "1.16.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -69,4 +69,4 @@ import path from 'path' | ||
if (routeFileIgnorePrefix) { | ||
routePath.replaceAll(routeFileIgnorePrefix, '') | ||
if (routeFilePrefix) { | ||
routePath = routePath.replace(routeFilePrefix, '') | ||
} | ||
@@ -179,3 +179,5 @@ | ||
const beforeRouteNodes = await getRouteNodes(config) | ||
const rootRouteNode = beforeRouteNodes.find((d) => d.routePath === `/${rootPathId}`) | ||
const rootRouteNode = beforeRouteNodes.find( | ||
(d) => d.routePath === `/${rootPathId}`, | ||
) | ||
@@ -182,0 +184,0 @@ const preRouteNodes = multiSortBy(beforeRouteNodes, [ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135428
1767