MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / listChunks

Function listChunks

apps/cloud/scripts/start-closure.mjs:41–48  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

39const DYNAMIC_RE = /import\(\s*["'](\.[^"']+)["']\s*\)/g;
40
41const listChunks = (dir) =>
42 readdirSync(dir, { withFileTypes: true }).flatMap((e) =>
43 e.isDirectory()
44 ? listChunks(join(dir, e.name))
45 : e.name.endsWith(".js")
46 ? [join(dir, e.name)]
47 : [],
48 );
49
50const graph = new Map();
51for (const file of listChunks(DIST)) {

Callers 1

start-closure.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected