fix: failing test on Windows

This commit is contained in:
WailGree 2025-06-10 13:47:19 +02:00
parent 321b4bb9c1
commit 12936b84e9
2 changed files with 5 additions and 2 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -91,7 +91,10 @@ const parseMakeLatest = (
export const paths = (patterns: string[]): string[] => {
return patterns.reduce((acc: string[], pattern: string): string[] => {
return acc.concat(
glob.sync(pattern).filter((path) => statSync(path).isFile()),
glob
.sync(pattern)
.filter((path) => statSync(path).isFile())
.map((path) => path.replace(/\\/g, "/")),
);
}, []);
};