MCPcopy
hub / github.com/babel/babel / packagesIterator

Function packagesIterator

Gulpfile.ts:810–821  ·  view source on GitHub ↗
(exclude: Set<string>)

Source from the content-addressed store, hash-verified

808}
809
810function* packagesIterator(exclude: Set<string>) {
811 for (const packageDir of ["packages", "codemods", "eslint"]) {
812 for (const dir of fs.readdirSync(new URL(packageDir, import.meta.url))) {
813 const src = `${packageDir}/${dir}`;
814 if (exclude.has(dir)) continue;
815 if (!fs.existsSync(new URL(`${src}/package.json`, import.meta.url))) {
816 continue;
817 }
818 yield src;
819 }
820 }
821}
822
823type DeepStringsObject = null | string | { [key: string]: DeepStringsObject };
824

Callers 2

libBundlesIteratorFunction · 0.85
Gulpfile.tsFile · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…