Skip to content

Commit c7e746e

Browse files
committed
Update normalize path for windows check
1 parent daaba51 commit c7e746e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/remixd/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@remix-project/remixd",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "remix server: allow accessing file system from remix.ethereum.org and start a dev environment (see help section)",
55
"main": "index.js",
66
"types": "./index.d.ts",
@@ -40,7 +40,7 @@
4040
"@remixproject/plugin-utils": "^0.3.3",
4141
"@remixproject/plugin-ws": "^0.3.3",
4242
"axios": "^0.20.0",
43-
"chokidar": "^3.5.1",
43+
"chokidar": "^2.1.8",
4444
"commander": "^2.20.3",
4545
"fs-extra": "^3.0.1",
4646
"isbinaryfile": "^3.0.2",

libs/remixd/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ function relativePath (path: string, sharedFolder: string): string {
2929
}
3030

3131
function normalizePath (path: string): string {
32+
if (path === '/') path = './'
3233
if (process.platform === 'win32') {
3334
return path.replace(/\\/g, '/')
3435
}
35-
if (path === '/') path = './'
3636
return path
3737
}
3838

0 commit comments

Comments
 (0)