MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / collect

Function collect

packages/tooling/src/vite.ts:367–376  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

365 }
366 const dtsFiles: string[] = [];
367 const collect = (dir: string) => {
368 for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
369 const full = path.join(dir, entry.name);
370 if (entry.isDirectory()) {
371 collect(full);
372 } else if (entry.name.endsWith('.d.ts')) {
373 dtsFiles.push(full);
374 }
375 }
376 };
377 collect(dtsBaseDir);
378
379 await createApiDtsFiles(dtsBaseDir, dtsFiles, projectDir, path.resolve(opts.dir!), {

Callers 1

writeBundleFunction · 0.85

Calls 2

joinMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected