From 8d6d0ec4a4e5dfe107b3453745cd17fb43c8b05b Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Thu, 11 Jun 2015 10:43:15 -0700 Subject: [PATCH] [ReactNative] Revert packager ignoring node_modules --- package.json | 2 +- packager/packager.js | 4 ++++ packager/react-packager/src/FileWatcher/index.js | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 19226bc08..08db6d6c1 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "react-timer-mixin": "^0.13.1", "react-tools": "0.13.2", "rebound": "^0.0.12", - "sane": "tadeuzagallo/sane#a029f8b04a", + "sane": "^1.1.2", "source-map": "0.1.31", "stacktrace-parser": "frantic/stacktrace-parser#493c5e5638", "uglify-js": "~2.4.16", diff --git a/packager/packager.js b/packager/packager.js index 7c4be0a77..7dd013c67 100644 --- a/packager/packager.js +++ b/packager/packager.js @@ -53,6 +53,9 @@ var options = parseCommandLine([{ }, { command: 'skipflow', description: 'Disable flow checks' +}, { + command: 'nonPersistent', + description: 'Disable file watcher' }]); if (options.projectRoots) { @@ -199,6 +202,7 @@ function statusPageMiddleware(req, res, next) { function getAppMiddleware(options) { return ReactPackager.middleware({ + nonPersistent: options.nonPersistent, projectRoots: options.projectRoots, blacklistRE: blacklist(options.platform), cacheVersion: '2', diff --git a/packager/react-packager/src/FileWatcher/index.js b/packager/react-packager/src/FileWatcher/index.js index d90de452d..cd1a28e55 100644 --- a/packager/react-packager/src/FileWatcher/index.js +++ b/packager/react-packager/src/FileWatcher/index.js @@ -67,7 +67,6 @@ function createWatcher(rootConfig) { var watcher = new Watcher(rootConfig.dir, { glob: rootConfig.globs, dot: false, - ignore: '**/node_modules/**/*', }); return new Promise(function(resolve, reject) {