MCPcopy Create free account
hub / github.com/formkit/formkit / determineFilePath

Function determineFilePath

packages/cli/src/theme.ts:575–579  ·  view source on GitHub ↗
(fileName: string)

Source from the content-addressed store, hash-verified

573}
574
575function determineFilePath(fileName: string): string | undefined {
576 const extensions = ['.ts', '.js', '.mjs', '.cjs']
577 const paths = extensions.map((ext) => resolve(process.cwd(), fileName + ext))
578 return getPath(paths)
579}
580
581function getPath(paths: string[]): string | undefined {
582 const path = paths.shift()

Callers 2

buildThemeFunction · 0.85
localGeneratedThemeFunction · 0.85

Calls 1

getPathFunction · 0.85

Tested by

no test coverage detected