Commit c7e746ed authored by ioedeveloper's avatar ioedeveloper

Update normalize path for windows check

parent daaba514
{
"name": "@remix-project/remixd",
"version": "0.3.1",
"version": "0.3.2",
"description": "remix server: allow accessing file system from remix.ethereum.org and start a dev environment (see help section)",
"main": "index.js",
"types": "./index.d.ts",
......@@ -40,7 +40,7 @@
"@remixproject/plugin-utils": "^0.3.3",
"@remixproject/plugin-ws": "^0.3.3",
"axios": "^0.20.0",
"chokidar": "^3.5.1",
"chokidar": "^2.1.8",
"commander": "^2.20.3",
"fs-extra": "^3.0.1",
"isbinaryfile": "^3.0.2",
......
......@@ -29,10 +29,10 @@ function relativePath (path: string, sharedFolder: string): string {
}
function normalizePath (path: string): string {
if (path === '/') path = './'
if (process.platform === 'win32') {
return path.replace(/\\/g, '/')
}
if (path === '/') path = './'
return path
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment