mirror of https://github.com/status-im/metro.git
[react-packager] Ignore dotfiles in file watching
This commit is contained in:
parent
ceeb06eb1a
commit
bedd4029c8
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue