diff --git a/lib/monitor/watch.js b/lib/monitor/watch.js index 19b8d508..60e4c712 100644 --- a/lib/monitor/watch.js +++ b/lib/monitor/watch.js @@ -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: ' + @@ -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( diff --git a/package-lock.json b/package-lock.json index f7a0961f..c446099f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1436,6 +1436,16 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", "dev": true }, + "fill-keys": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fill-keys/-/fill-keys-1.0.2.tgz", + "integrity": "sha1-mo+jb06K1jTjv2tPPIiCVRRS6yA=", + "dev": true, + "requires": { + "is-object": "1.0.1", + "merge-descriptors": "1.0.1" + } + }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -3169,6 +3179,12 @@ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=" }, + "is-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", + "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=", + "dev": true + }, "is-odd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-1.0.0.tgz", @@ -3867,6 +3883,12 @@ "trim-newlines": "1.0.0" } }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, "micromatch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.5.tgz", @@ -4059,6 +4081,12 @@ "integrity": "sha1-4rbN65zhn5kxelNyLz2/XfXqqrI=", "dev": true }, + "module-not-found-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/module-not-found-error/-/module-not-found-error-1.0.1.tgz", + "integrity": "sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=", + "dev": true + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -4694,6 +4722,17 @@ "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", "dev": true }, + "proxyquire": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/proxyquire/-/proxyquire-1.8.0.tgz", + "integrity": "sha1-AtUUpb7ZhvBMuyCTrxZ0FTX3ntw=", + "dev": true, + "requires": { + "fill-keys": "1.0.2", + "module-not-found-error": "1.0.1", + "resolve": "1.1.7" + } + }, "ps-tree": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.1.0.tgz", diff --git a/package.json b/package.json index 0cd5a0f7..bb03c369 100644 --- a/package.json +++ b/package.json @@ -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" }, @@ -65,5 +66,5 @@ "undefsafe": "^2.0.1", "update-notifier": "^2.3.0" }, - "version": "0.0.0-development" + "version": "1.15.2-alpha.1" }