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

Function cleanUpFileArray

packages/create/src/edge-file-helpers.ts:105–112  ·  view source on GitHub ↗
(files: Array<string>, targetDir?: string)

Source from the content-addressed store, hash-verified

103}
104
105export function cleanUpFileArray(files: Array<string>, targetDir?: string) {
106 return files.reduce<Array<string>>((acc, file) => {
107 if (basenamePath(file) !== '.cta.json') {
108 acc.push(targetDir ? toCleanPath(file, targetDir) : file)
109 }
110 return acc
111 }, [])
112}

Callers

nothing calls this directly

Calls 2

basenamePathFunction · 0.85
toCleanPathFunction · 0.70

Tested by

no test coverage detected