MCPcopy Create free account
hub / github.com/arktypeio/arktype / defaultFiles

Function defaultFiles

ark/jetbrains/scripts/diffEngine.ts:61–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 : []
60
61const defaultFiles = (): string[] => {
62 const tracked = execFileSync("git", ["ls-files", "-z"], {
63 cwd: repoRoot,
64 encoding: "utf8",
65 maxBuffer: 64 * 1024 * 1024
66 })
67 .split("\0")
68 .filter(
69 path =>
70 path &&
71 extensions.includes(extname(path)) &&
72 !path.split("/").includes("node_modules")
73 )
74 .map(path => join(repoRoot, path))
75 const extra = [...listDir(corpusDir), ...listDir(samplesDir)]
76 return [...new Set([...tracked, ...extra])].filter(
77 path =>
78 existsSync(path) &&
79 extensions.includes(extname(path)) &&
80 statSync(path).size <= maxFileSize
81 )
82}
83
84const args = process.argv.slice(2)
85let variants = [true, false]

Callers 1

diffEngine.tsFile · 0.85

Calls 4

joinFunction · 0.85
listDirFunction · 0.85
filterMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected