Skip to content

Commit

Permalink
fix: put windows drive letter tweak in right place (#1272)
Browse files Browse the repository at this point in the history
Fixes #1263
  • Loading branch information
remy authored Feb 27, 2018
1 parent e41f3c3 commit 94b526f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 8 deletions.
15 changes: 8 additions & 7 deletions lib/monitor/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ function filterAndRestart(files) {
files = [files];
}
if (files.length) {
if (utils.isWindows) {
// ensure the drive letter is in uppercase (c:\foo -> C:\foo)
files = files.map(function (f) {
return f[0].toUpperCase() + f.slice(1);
});
}

var cwd = this.options ? this.options.cwd : process.cwd();
utils.log.detail(
'files triggering change check: ' +
Expand All @@ -150,6 +143,14 @@ function filterAndRestart(files) {
return path.relative(process.cwd(), path.join(cwd, file));
});

if (utils.isWindows) {
// ensure the drive letter is in uppercase (c:\foo -> C:\foo)
files = files.map(function (f) {
return f[0].toUpperCase() + f.slice(1);
});
}


debug('filterAndRestart on', files);

var matched = match(
Expand Down
39 changes: 39 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"istanbul": "^0.4.5",
"jscs": "^3.0.7",
"mocha": "^2.3.3",
"proxyquire": "^1.8.0",
"semantic-release": "^8.2.0",
"should": "~4.0.0"
},
Expand All @@ -65,5 +66,5 @@
"undefsafe": "^2.0.1",
"update-notifier": "^2.3.0"
},
"version": "0.0.0-development"
"version": "1.15.2-alpha.1"
}

0 comments on commit 94b526f

Please sign in to comment.