fix(audit:manifest): report forward-slash paths on Windows

This commit is contained in:
garrytan committed 2026-10-03 22:21:50 +00:00
1 parent afd55b8a1f
commit 143cb4f6da
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ function walk(dir: string, keep: (rel: string) => boolean): string[] {
const visit = (d: string) => {
for (const entry of readdirSync(d, { withFileTypes: true })) {
const p = join(d, entry.name);
const rel = relative(ROOT, p);
const rel = relative(ROOT, p).replaceAll('\\', '/');
if (entry.isDirectory()) {
if (!entry.name.startsWith('.') && entry.name !== 'node_modules') visit(p);
} else if (keep(rel)) {