Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 2 additions and 4 deletions.
  1. +2 −4 lib/supervisor.js
6 lib/supervisor.js
View
@@ -197,8 +197,8 @@ function crash () {
}, 50);
}
-function crashWin (event) {
- if( event === 'change' )
+function crashWin (event, filename) {
+ if( event === 'change' && (!filename || filename.match(fileExtensionPattern) )
crash();
}
@@ -220,8 +220,6 @@ var findAllWatchFiles = function(path, callback) {
fs.stat(path, function(err, stats){
if (err) {
util.error('Error retrieving stats for file: ' + path);
- } else if (isWindows) {
- callback(path);
} else {
if (stats.isDirectory()) {
fs.readdir(path, function(err, fileNames) {
Please sign in to comment.
Something went wrong with that request. Please try again.