mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-08 17:58:13 +01:00
fix(audit:manifest): report forward-slash paths on Windows
This commit is contained in:
1 parent
afd55b8a1f
commit
143cb4f6da
1 file changed
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user