Skip to content

Commit 4069bfa

Browse files
committed
fix: fix path sep undefined #345
1 parent adc3983 commit 4069bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/convert-path-to-posix.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export default function convertPathToPosix(filePath: string) {
77
return filePath;
88
}
99

10-
return filePath.split(path?.win32?.sep).join(path.posix.sep);
10+
return filePath.split(path?.win32?.sep).join(path?.posix?.sep ?? "/");
1111
}

0 commit comments

Comments
 (0)