Skip to content

Commit 94b526f

Browse files
authoredFeb 27, 2018
fix: put windows drive letter tweak in right place (#1272)
Fixes #1263
1 parent e41f3c3 commit 94b526f

File tree

3 files changed

+49
-8
lines changed

3 files changed

+49
-8
lines changed
 

‎lib/monitor/watch.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ function filterAndRestart(files) {
129129
files = [files];
130130
}
131131
if (files.length) {
132-
if (utils.isWindows) {
133-
// ensure the drive letter is in uppercase (c:\foo -> C:\foo)
134-
files = files.map(function (f) {
135-
return f[0].toUpperCase() + f.slice(1);
136-
});
137-
}
138-
139132
var cwd = this.options ? this.options.cwd : process.cwd();
140133
utils.log.detail(
141134
'files triggering change check: ' +
@@ -150,6 +143,14 @@ function filterAndRestart(files) {
150143
return path.relative(process.cwd(), path.join(cwd, file));
151144
});
152145

146+
if (utils.isWindows) {
147+
// ensure the drive letter is in uppercase (c:\foo -> C:\foo)
148+
files = files.map(function (f) {
149+
return f[0].toUpperCase() + f.slice(1);
150+
});
151+
}
152+
153+
153154
debug('filterAndRestart on', files);
154155

155156
var matched = match(

‎package-lock.json

+39
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"istanbul": "^0.4.5",
5151
"jscs": "^3.0.7",
5252
"mocha": "^2.3.3",
53+
"proxyquire": "^1.8.0",
5354
"semantic-release": "^8.2.0",
5455
"should": "~4.0.0"
5556
},
@@ -65,5 +66,5 @@
6566
"undefsafe": "^2.0.1",
6667
"update-notifier": "^2.3.0"
6768
},
68-
"version": "0.0.0-development"
69+
"version": "1.15.2-alpha.1"
6970
}

0 commit comments

Comments
 (0)