(fileFilter: string[], callback: (entry: EntryInfo) => void)
| 19 | const modulesWithDefaultExports = ['utils/lazy']; |
| 20 | |
| 21 | function traverseInputDir(fileFilter: string[], callback: (entry: EntryInfo) => void) { |
| 22 | return new Promise((resolve, reject) => { |
| 23 | readdirp(inputFolder, { |
| 24 | fileFilter, |
| 25 | directoryFilter: (di: EntryInfo) => { |
| 26 | return !di.path.startsWith('node_modules') && !di.path.startsWith('platforms'); |
| 27 | }, |
| 28 | }) |
| 29 | .on('data', callback) |
| 30 | .on('error', reject) |
| 31 | .on('end', resolve); |
| 32 | }); |
| 33 | } |
| 34 | |
| 35 | function processPackageJsonFile(entry: EntryInfo) { |
| 36 | const dirPath = path.dirname(entry.path); |
no test coverage detected