diff --git a/script/check-greys.ts b/script/check-greys.ts index d1669c8065b64..e203a7431982a 100644 --- a/script/check-greys.ts +++ b/script/check-greys.ts @@ -62,7 +62,10 @@ const scale = new Set([...SCALE.light, ...SCALE.dark, "#000000"]) const files = ( await Promise.all(ROOTS.map((root) => Array.fromAsync(new Bun.Glob(`${root}/**/*.css`).scan({ cwd: repo() })))) -).flat() +) + .flat() + // Glob hands back backslash paths on Windows, and every exception below is written with forward slashes. + .map((file) => file.replaceAll("\\", "/")) const entries = ( await Promise.all(