From de7cc4964109a486dbd6d940e6e554a525bef197 Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 25 Nov 2026 13:04:18 +0100 Subject: [PATCH] test(mirror): the folder listing uses / on Windows too readdirSync returns Plan\Step.md on Windows and posix.normalize keeps the backslash, so the Windows release job compared "Plan\Step.md" with "Plan/Step.md" and stopped the 0.9.0 release. The mirror itself was right; only the test's tree() helper read the native separator. Co-Authored-By: Claude Opus 5.5 --- src/mirror-target.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mirror-target.test.ts b/src/mirror-target.test.ts index 2c121f0..50a5953 100644 --- a/src/mirror-target.test.ts +++ b/src/mirror-target.test.ts @@ -86,6 +86,7 @@ const put = (root: string, path: string, text: string) => { const tree = (root: string) => Object.fromEntries( readdirSync(root, { recursive: true, encoding: "utf8" }) + .map((path) => path.replaceAll("\\", "/")) .filter((path) => !path.split("/").some((part) => part.startsWith(".")) && path.endsWith(".md")) .map((path) => [posix.normalize(path), readFileSync(join(root, path), "utf8")]), )