MCPcopy Create free account
hub / github.com/TanStack/cli / joinPaths

Function joinPaths

packages/create/src/edge-path.ts:29–38  ·  view source on GitHub ↗
(...paths: Array<string | undefined>)

Source from the content-addressed store, hash-verified

27}
28
29export function joinPaths(...paths: Array<string | undefined>): string {
30 const filtered = paths.filter(
31 (path): path is string => typeof path === 'string' && path.length > 0,
32 )
33 if (!filtered.length) {
34 return '.'
35 }
36
37 return normalizePath(filtered.join('/'))
38}
39
40export function basenamePath(path: string): string {
41 const normalized = normalizePath(path)

Callers 7

createTemplateFileFunction · 0.85
writeFileBundleFunction · 0.85
writeFilesFunction · 0.85
runSpecialStepsFunction · 0.85
seedEnvValuesFunction · 0.85
writeEnvExampleFunction · 0.85

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected