(exclude: Set<string>)
| 796 | } |
| 797 | |
| 798 | function* 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 | |
| 811 | type DeepStringsObject = null | string | { [key: string]: DeepStringsObject }; |
| 812 |
no test coverage detected