From 048f9350b871f1ca10a8c806ae325be8e1430013 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sat, 28 Sep 2019 01:19:26 +0300 Subject: [PATCH] Fix path normalization on win32. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8ef6bd85..46e264b7 100644 --- a/index.js +++ b/index.js @@ -356,7 +356,7 @@ add(paths_, _origAdd, _internal) { if (!paths.every(p => typeof p === STRING_TYPE)) { throw new TypeError('Non-string provided as watch path: ' + paths); } - paths = paths.map(path => sysPath.normalize(path)); + paths = paths.map(path => normalizePathToUnix(path)); if (cwd) { paths = paths.map((path) => {