Skip to content

Commit

Permalink
[react-packager] Ignore dotfiles in file watching
Browse files Browse the repository at this point in the history
  • Loading branch information
Amjad Masad committed Apr 2, 2015
1 parent 3b39e5a commit dac0887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packager/react-packager/src/FileWatcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit dac0887

Please sign in to comment.