MCPcopy Create free account
hub / github.com/babel/babel / packagesIterator

Function packagesIterator

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

Source from the content-addressed store, hash-verified

796}
797
798function* packagesIterator(exclude: Set<string>) {
799 for (const packageDir of ["packages", "codemods", "eslint"]) {
800 for (const dir of fs.readdirSync(new URL(packageDir, import.meta.url))) {
801 const src = `${packageDir}/${dir}`;
802 if (exclude.has(dir)) continue;
803 if (!fs.existsSync(new URL(`${src}/package.json`, import.meta.url))) {
804 continue;
805 }
806 yield src;
807 }
808 }
809}
810
811type DeepStringsObject = null | string | { [key: string]: DeepStringsObject };
812

Callers 2

libBundlesIteratorFunction · 0.85
Gulpfile.tsFile · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected