Skip to content

Commit

Permalink
lax the windows path conversion if not available (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarman committed Mar 4, 2024
1 parent f1eec6c commit cebb1f6
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 cebb1f6

Please sign in to comment.