gen-api: module names with forward slashes on Windows too (the tables were stale on Linux CI)

This commit is contained in:
CRTkafa 2026-10-23 13:13:03 +08:00
parent 54451c87c8
commit 4933279987

View file

@ -204,7 +204,7 @@ function listTs(dir: string): string[] {
}
export function scanCli(root = ROOT): CallSite[] {
return listTs(join(root, 'cli')).flatMap(p => scanSource(relative(join(root, 'cli'), p).replace(/\.ts$/, ''), readFileSync(p, 'utf8')));
return listTs(join(root, 'cli')).flatMap(p => scanSource(relative(join(root, 'cli'), p).replaceAll('\\', '/').replace(/\.ts$/, ''), readFileSync(p, 'utf8')));
}
// ---------------------------------------------------------------------------------------------------------- output