From c7e746edda4c3dbaa5fcd2636686d4f6ea1606b3 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 4 Feb 2021 14:53:44 +0100 Subject: [PATCH] Update normalize path for windows check --- libs/remixd/package.json | 4 ++-- libs/remixd/src/utils.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remixd/package.json b/libs/remixd/package.json index 8459cc3ed9..07570b469a 100644 --- a/libs/remixd/package.json +++ b/libs/remixd/package.json @@ -1,6 +1,6 @@ { "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", diff --git a/libs/remixd/src/utils.ts b/libs/remixd/src/utils.ts index 984f6de798..aa8cd28a70 100644 --- a/libs/remixd/src/utils.ts +++ b/libs/remixd/src/utils.ts @@ -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 }