MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / normalizeApiReport

Function normalizeApiReport

scripts/run-api-extractor.mjs:20–28  ·  view source on GitHub ↗
(reportPath)

Source from the content-addressed store, hash-verified

18];
19
20function 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
30for (const config of configs) {
31 const projectRoot = resolve(root, dirname(config));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected