From 493327998754125f53881959a1fe73be50b023e5 Mon Sep 17 00:00:00 2001 From: CRT Date: Fri, 23 Oct 2026 13:13:03 +0800 Subject: [PATCH] gen-api: module names with forward slashes on Windows too (the tables were stale on Linux CI) --- tools/gen-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gen-api.ts b/tools/gen-api.ts index 31eaaf1..38e6c12 100644 --- a/tools/gen-api.ts +++ b/tools/gen-api.ts @@ -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