Skip to content
This repository
Browse code

Merge pull request #63 from heycalmdown/patch-1

Support '--extensions' on Windows
  • Loading branch information...
commit 860a647e5260328e9e1c7f8e328df314030a92e9 2 parents 4e953a8 + 862c1ca
Ian Young iangreenleaf authored

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. +2 4 lib/supervisor.js
6 lib/supervisor.js
@@ -197,8 +197,8 @@ function crash () {
197 197 }, 50);
198 198 }
199 199
200   -function crashWin (event) {
201   - if( event === 'change' )
  200 +function crashWin (event, filename) {
  201 + if( event === 'change' && (!filename || filename.match(fileExtensionPattern) )
202 202 crash();
203 203 }
204 204
@@ -220,8 +220,6 @@ var findAllWatchFiles = function(path, callback) {
220 220 fs.stat(path, function(err, stats){
221 221 if (err) {
222 222 util.error('Error retrieving stats for file: ' + path);
223   - } else if (isWindows) {
224   - callback(path);
225 223 } else {
226 224 if (stats.isDirectory()) {
227 225 fs.readdir(path, function(err, fileNames) {

0 comments on commit 860a647

Please sign in to comment.
Something went wrong with that request. Please try again.