(reportPath)
| 18 | ]; |
| 19 | |
| 20 | function normalizeApiReport(reportPath) { |
| 21 | if (!existsSync(reportPath)) return; |
| 22 | const report = readFileSync(reportPath, "utf8"); |
| 23 | const normalizedRoot = root.replaceAll("\\", "/"); |
| 24 | const normalized = report.replaceAll(`${normalizedRoot}/`, ""); |
| 25 | if (normalized !== report) { |
| 26 | writeFileSync(reportPath, normalized, "utf8"); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | for (const config of configs) { |
| 31 | const projectRoot = resolve(root, dirname(config)); |