@tanstack/router-generator
Advanced tools
Comparing version 1.12.16 to 1.14.1
@@ -89,5 +89,5 @@ import path from "path"; | ||
async function generator(config) { | ||
console.log(); | ||
console.log(""); | ||
if (!first) { | ||
console.log("🔄 Generating routes..."); | ||
console.log("♻️ Generating routes..."); | ||
first = true; | ||
@@ -185,3 +185,3 @@ } else if (skipMessage) { | ||
if (replaced !== routeCode) { | ||
console.log(`🌲 Updating ${node.fullPath}`); | ||
console.log(`🟡 Updating ${node.fullPath}`); | ||
await fsp.writeFile(node.fullPath, replaced); | ||
@@ -194,3 +194,3 @@ } | ||
if (!anchorRoute) { | ||
handleNode({ | ||
await handleNode({ | ||
...node, | ||
@@ -215,3 +215,3 @@ isVirtual: true, | ||
}; | ||
preRouteNodes.forEach((node) => handleNode(node)); | ||
await Promise.all(preRouteNodes.map((node) => handleNode(node))); | ||
async function buildRouteConfig(nodes, depth = 1) { | ||
@@ -387,3 +387,3 @@ const children = nodes.map(async (node) => { | ||
console.log( | ||
`🌲 Processed ${routeNodes.length} routes in ${Date.now() - start}ms` | ||
`✅ Processed ${routeNodes.length} routes in ${Date.now() - start}ms` | ||
); | ||
@@ -390,0 +390,0 @@ } |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.12.16", | ||
"version": "1.14.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -152,6 +152,6 @@ import path from 'path' | ||
export async function generator(config: Config) { | ||
console.log() | ||
console.log('') | ||
if (!first) { | ||
console.log('🔄 Generating routes...') | ||
console.log('♻️ Generating routes...') | ||
first = true | ||
@@ -266,3 +266,3 @@ } else if (skipMessage) { | ||
if (replaced !== routeCode) { | ||
console.log(`🌲 Updating ${node.fullPath}`) | ||
console.log(`🟡 Updating ${node.fullPath}`) | ||
await fsp.writeFile(node.fullPath, replaced) | ||
@@ -297,3 +297,3 @@ } | ||
if (!anchorRoute) { | ||
handleNode({ | ||
await handleNode({ | ||
...node, | ||
@@ -321,3 +321,3 @@ isVirtual: true, | ||
preRouteNodes.forEach((node) => handleNode(node)) | ||
await Promise.all(preRouteNodes.map((node) => handleNode(node))) | ||
@@ -539,3 +539,3 @@ async function buildRouteConfig( | ||
console.log( | ||
`🌲 Processed ${routeNodes.length} routes in ${Date.now() - start}ms`, | ||
`✅ Processed ${routeNodes.length} routes in ${Date.now() - start}ms`, | ||
) | ||
@@ -542,0 +542,0 @@ } |
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
130233