[react-packager] Ignore dotfiles in file watching

This commit is contained in:
Amjad Masad 2015-04-02 06:32:34 -07:00
parent ceeb06eb1a
commit bedd4029c8
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ FileWatcher.prototype.end = function() {
function createWatcher(rootConfig) { function createWatcher(rootConfig) {
return detectingWatcherClass.then(function(Watcher) { return detectingWatcherClass.then(function(Watcher) {
var watcher = new Watcher(rootConfig.dir, rootConfig.globs); var watcher = new Watcher(rootConfig.dir, {
glob: rootConfig.globs,
dot: false,
});
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
var rejectTimeout = setTimeout(function() { var rejectTimeout = setTimeout(function() {