(packages = getPackages())
| 91 | } |
| 92 | |
| 93 | async function getPackageJsons(packages = getPackages()) { |
| 94 | return Promise.all( |
| 95 | (await packages).map(async (p) => { |
| 96 | const jsonPath = path.resolve(p, 'package.json') |
| 97 | const pkg = JSON.parse((await fs.promises.readFile(jsonPath)).toString()) |
| 98 | return [jsonPath, pkg] |
| 99 | }), |
| 100 | ) |
| 101 | } |
| 102 | |
| 103 | function shouldIgnoreImport(sourceValue) { |
| 104 | return !/^(\.{1-2}|(@interactjs))[\\/]/.test(sourceValue) |
no test coverage detected