@tanstack/router-generator
Advanced tools
Comparing version 1.45.2 to 1.45.7
@@ -16,2 +16,9 @@ import { z } from 'zod'; | ||
routeTreeFileFooter: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>; | ||
experimental: z.ZodOptional<z.ZodObject<{ | ||
enableCodeSplitting: z.ZodOptional<z.ZodBoolean>; | ||
}, "strip", z.ZodTypeAny, { | ||
enableCodeSplitting?: boolean | undefined; | ||
}, { | ||
enableCodeSplitting?: boolean | undefined; | ||
}>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -30,2 +37,5 @@ routeFileIgnorePrefix: string; | ||
routeFileIgnorePattern?: string | undefined; | ||
experimental?: { | ||
enableCodeSplitting?: boolean | undefined; | ||
} | undefined; | ||
}, { | ||
@@ -44,4 +54,7 @@ routeFilePrefix?: string | undefined; | ||
routeTreeFileFooter?: string[] | undefined; | ||
experimental?: { | ||
enableCodeSplitting?: boolean | undefined; | ||
} | undefined; | ||
}>; | ||
export type Config = z.infer<typeof configSchema>; | ||
export declare function getConfig(inlineConfig?: Partial<Config>, configDirectory?: string): Promise<Config>; | ||
export declare function getConfig(inlineConfig?: Partial<Config>, configDirectory?: string): Config; |
@@ -21,5 +21,8 @@ import path from "node:path"; | ||
]), | ||
routeTreeFileFooter: z.array(z.string()).optional().default(["/* prettier-ignore-end */"]) | ||
routeTreeFileFooter: z.array(z.string()).optional().default(["/* prettier-ignore-end */"]), | ||
experimental: z.object({ | ||
enableCodeSplitting: z.boolean().optional() | ||
}).optional() | ||
}); | ||
async function getConfig(inlineConfig = {}, configDirectory) { | ||
function getConfig(inlineConfig = {}, configDirectory) { | ||
if (configDirectory === void 0) { | ||
@@ -26,0 +29,0 @@ configDirectory = process.cwd(); |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.45.2", | ||
"version": "1.45.7", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -29,2 +29,7 @@ import path from 'node:path' | ||
.default(['/* prettier-ignore-end */']), | ||
experimental: z | ||
.object({ | ||
enableCodeSplitting: z.boolean().optional(), | ||
}) | ||
.optional(), | ||
}) | ||
@@ -34,6 +39,6 @@ | ||
export async function getConfig( | ||
export function getConfig( | ||
inlineConfig: Partial<Config> = {}, | ||
configDirectory?: string, | ||
): Promise<Config> { | ||
): Config { | ||
if (configDirectory === undefined) { | ||
@@ -40,0 +45,0 @@ configDirectory = process.cwd() |
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
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
188586
2409