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

Function cleanUpFileArray

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

Source from the content-addressed store, hash-verified

285}
286
287export function cleanUpFileArray(files: Array<string>, targetDir?: string) {
288 return files.reduce<Array<string>>((acc, file) => {
289 if (basename(file) !== '.cta.json') {
290 acc.push(targetDir ? toCleanPath(file, targetDir) : file)
291 }
292 return acc
293 }, [])
294}

Callers 2

createMemoryEnvironmentFunction · 0.70
createMemoryEnvironmentFunction · 0.70

Calls 1

toCleanPathFunction · 0.70

Tested by

no test coverage detected