Skip to content

Commit cf49c3c

Browse files
filip mertensyann300
authored andcommitted
fix paths
1 parent 51cee0e commit cf49c3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libs/remixd/src/utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ function isSubDirectory (parent: string, child: string) {
4141
function relativePath (path: string, sharedFolder: string): string {
4242
const relative: string = pathModule.relative(sharedFolder, path)
4343

44-
return normalizePath(relative)
44+
return convertPathToPosix(normalizePath(relative))
45+
}
46+
47+
const convertPathToPosix = (pathName: string): string => {
48+
return pathName.split(pathModule.sep).join(pathModule.posix.sep)
4549
}
4650

4751
function normalizePath (path) {

0 commit comments

Comments
 (0)