From 4069bfa55a571b29183f11b73dc6e40b1d987954 Mon Sep 17 00:00:00 2001 From: JonLuca DeCaro Date: Tue, 23 Apr 2024 10:26:35 -0700 Subject: [PATCH] fix: fix path sep undefined #345 --- lib/util/convert-path-to-posix.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/convert-path-to-posix.ts b/lib/util/convert-path-to-posix.ts index 4e12d149..d7881757 100644 --- a/lib/util/convert-path-to-posix.ts +++ b/lib/util/convert-path-to-posix.ts @@ -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 ?? "/"); }