[react-packager] Ignore dotfiles in file watching

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

View File

@ -64,7 +64,10 @@ FileWatcher.prototype.end = function() {
function createWatcher(rootConfig) {
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) {
var rejectTimeout = setTimeout(function() {