From 98fc8336477fa43a17b5c201554ab18bb9aa66fd Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 3 Apr 2015 08:38:06 -0700 Subject: [PATCH] Updates from Fri 3 Apr - Update deps order - core modules first | Amjad Masad - [ReactNative] Workaround double cmd+r bug | Christopher Chedeau - [react-native] Nicer error for undefined or string tag names | Ben Alpert - [ReactNative] Fix script load from local files | Tadeu Zagallo - [react_native] JS files from D1961099: Format stack trace on native side | Alex Kotliarskyi - [ReactNative] Cleanup TabBar and its example | Christopher Chedeau - [ReactNative] Allow recover from debugger error | Tadeu Zagallo - [react-native] Update react to 0.13.1, jstransform alongside | Ben Alpert - Fixed tap-to-zoom in Groups photo viewer | Sumeet Vaidya - Fix hitTest for auto | Tadeu Zagallo - [ReactNative] Unfork RKRootView | Tadeu Zagallo - [react-packager] Ignore dotfiles in file watching | Amjad Masad --- packager.js | 6 +++--- react-packager/src/FileWatcher/index.js | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packager.js b/packager.js index ad47d1d9..e2a32f2c 100644 --- a/packager.js +++ b/packager.js @@ -10,6 +10,8 @@ var fs = require('fs'); var path = require('path'); +var exec = require('child_process').exec; +var http = require('http'); if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) { console.log( @@ -21,11 +23,9 @@ if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules'))) { process.exit(); } -var exec = require('child_process').exec; +var connect = require('connect'); var ReactPackager = require('./react-packager'); var blacklist = require('./blacklist.js'); -var connect = require('connect'); -var http = require('http'); var launchEditor = require('./launchEditor.js'); var parseCommandLine = require('./parseCommandLine.js'); var webSocketProxy = require('./webSocketProxy.js'); diff --git a/react-packager/src/FileWatcher/index.js b/react-packager/src/FileWatcher/index.js index 6f451b48..9af96c14 100644 --- a/react-packager/src/FileWatcher/index.js +++ b/react-packager/src/FileWatcher/index.js @@ -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() {