@tanstack/router-generator
Advanced tools
Comparing version 1.78.2 to 1.78.3
@@ -65,4 +65,4 @@ import path from "node:path"; | ||
dirList.map(async (dirent) => { | ||
const fullPath = path.join(fullDir, dirent.name); | ||
const relativePath = path.join(dir, dirent.name); | ||
const fullPath = path.posix.join(fullDir, dirent.name); | ||
const relativePath = path.posix.join(dir, dirent.name); | ||
if (dirent.isDirectory()) { | ||
@@ -69,0 +69,0 @@ await recurse(relativePath); |
@@ -63,3 +63,3 @@ import path, { resolve, join } from "node:path"; | ||
function getFile(file) { | ||
const filePath = file.split("/").join(path.sep); | ||
const filePath = file; | ||
const variableName = routePathToVariable(removeExt(filePath)); | ||
@@ -66,0 +66,0 @@ const fullPath = join(fullDir, filePath); |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.78.2", | ||
"version": "1.78.3", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -98,4 +98,4 @@ import path from 'node:path' | ||
dirList.map(async (dirent) => { | ||
const fullPath = path.join(fullDir, dirent.name) | ||
const relativePath = path.join(dir, dirent.name) | ||
const fullPath = path.posix.join(fullDir, dirent.name) | ||
const relativePath = path.posix.join(dir, dirent.name) | ||
@@ -102,0 +102,0 @@ if (dirent.isDirectory()) { |
@@ -87,3 +87,3 @@ import path, { join, resolve } from 'node:path' | ||
function getFile(file: string) { | ||
const filePath = file.split('/').join(path.sep) | ||
const filePath = file | ||
const variableName = routePathToVariable(removeExt(filePath)) | ||
@@ -90,0 +90,0 @@ const fullPath = join(fullDir, filePath) |
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
348163