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

Function visit

packages/create/scripts/generate-manifest.mjs:77–86  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

75 }
76
77 function visit(dir) {
78 for (const entry of readdirSync(dir, { withFileTypes: true })) {
79 const file = resolve(dir, entry.name)
80 if (entry.isDirectory()) {
81 visit(file)
82 } else {
83 files[toCleanPath(file, baseDir)] = readTemplateFile(file)
84 }
85 }
86 }
87
88 visit(baseDir)
89

Callers 1

findFilesRecursivelyFunction · 0.85

Calls 2

readTemplateFileFunction · 0.85
toCleanPathFunction · 0.70

Tested by

no test coverage detected