@tanstack/router-generator
Advanced tools
Comparing version 1.87.6 to 1.87.7
@@ -95,2 +95,7 @@ import { z } from 'zod'; | ||
export type Config = z.infer<typeof configSchema>; | ||
type ResolveParams = { | ||
configDirectory: string; | ||
}; | ||
export declare function resolveConfigPath({ configDirectory }: ResolveParams): string; | ||
export declare function getConfig(inlineConfig?: Partial<Config>, configDirectory?: string): Config; | ||
export {}; |
@@ -53,2 +53,5 @@ import path from "node:path"; | ||
}); | ||
function resolveConfigPath({ configDirectory }) { | ||
return path.resolve(configDirectory, "tsr.config.json"); | ||
} | ||
function getConfig(inlineConfig = {}, configDirectory) { | ||
@@ -58,3 +61,3 @@ if (configDirectory === void 0) { | ||
} | ||
const configFilePathJson = path.resolve(configDirectory, "tsr.config.json"); | ||
const configFilePathJson = resolveConfigPath({ configDirectory }); | ||
const exists = existsSync(configFilePathJson); | ||
@@ -128,4 +131,5 @@ let config; | ||
configSchema, | ||
getConfig | ||
getConfig, | ||
resolveConfigPath | ||
}; | ||
//# sourceMappingURL=config.js.map |
@@ -1,4 +0,4 @@ | ||
export { configSchema, getConfig } from './config.js'; | ||
export { configSchema, getConfig, resolveConfigPath } from './config.js'; | ||
export type { Config } from './config.js'; | ||
export { generator, startAPIRouteSegmentsFromTSRFilePath, CONSTANTS, } from './generator.js'; | ||
export type { StartAPIRoutePathSegment } from './generator.js'; |
@@ -1,2 +0,2 @@ | ||
import { configSchema, getConfig } from "./config.js"; | ||
import { configSchema, getConfig, resolveConfigPath } from "./config.js"; | ||
import { CONSTANTS, generator, startAPIRouteSegmentsFromTSRFilePath } from "./generator.js"; | ||
@@ -8,4 +8,5 @@ export { | ||
getConfig, | ||
resolveConfigPath, | ||
startAPIRouteSegmentsFromTSRFilePath | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@tanstack/router-generator", | ||
"version": "1.87.6", | ||
"version": "1.87.7", | ||
"description": "Modern and scalable routing for React applications", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -70,2 +70,10 @@ import path from 'node:path' | ||
type ResolveParams = { | ||
configDirectory: string | ||
} | ||
export function resolveConfigPath({ configDirectory }: ResolveParams) { | ||
return path.resolve(configDirectory, 'tsr.config.json') | ||
} | ||
export function getConfig( | ||
@@ -78,3 +86,3 @@ inlineConfig: Partial<Config> = {}, | ||
} | ||
const configFilePathJson = path.resolve(configDirectory, 'tsr.config.json') | ||
const configFilePathJson = resolveConfigPath({ configDirectory }) | ||
const exists = existsSync(configFilePathJson) | ||
@@ -81,0 +89,0 @@ |
@@ -1,2 +0,2 @@ | ||
export { configSchema, getConfig } from './config' | ||
export { configSchema, getConfig, resolveConfigPath } from './config' | ||
export type { Config } from './config' | ||
@@ -3,0 +3,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
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
361806
4686