Skip to content

Commit

Permalink
fix: fix path sep undefined #345
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Apr 23, 2024
1 parent adc3983 commit 4069bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/convert-path-to-posix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default function convertPathToPosix(filePath: string) {
return filePath;
}

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

0 comments on commit 4069bfa

Please sign in to comment.