From cf49c3c009e568b1913e1a7dcf9c8009a477a3d9 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Fri, 7 Jul 2023 13:50:07 +0200 Subject: [PATCH] fix paths --- libs/remixd/src/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/remixd/src/utils.ts b/libs/remixd/src/utils.ts index 9c0963e296..93aefb325a 100644 --- a/libs/remixd/src/utils.ts +++ b/libs/remixd/src/utils.ts @@ -41,7 +41,11 @@ function isSubDirectory (parent: string, child: string) { function relativePath (path: string, sharedFolder: string): string { const relative: string = pathModule.relative(sharedFolder, path) - return normalizePath(relative) + return convertPathToPosix(normalizePath(relative)) +} + +const convertPathToPosix = (pathName: string): string => { + return pathName.split(pathModule.sep).join(pathModule.posix.sep) } function normalizePath (path) {