From e3809a87be90e38aeee265809f6e20d8a8808c1e Mon Sep 17 00:00:00 2001 From: Cristiano Belloni Date: Tue, 5 Jul 2022 10:08:08 +0100 Subject: [PATCH] Always format from Win32 to Posix --- .../modular-scripts/src/esbuild-scripts/utils/formatPath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts b/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts index ca3dbbb23..c3c08adc3 100644 --- a/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts +++ b/packages/modular-scripts/src/esbuild-scripts/utils/formatPath.ts @@ -2,6 +2,6 @@ import path from 'path'; export function normalizeToPosix(pathName: T): T { return ( - pathName ? pathName.split(path.sep).join(path.posix.sep) : pathName + pathName ? pathName.split(path.win32.sep).join(path.posix.sep) : pathName ) as T; }