[ReactNative] Revert packager ignoring node_modules

This commit is contained in:
Tadeu Zagallo 2015-06-11 10:43:15 -07:00
parent 712c52609b
commit 24026b6c25
2 changed files with 4 additions and 1 deletions

View File

@ -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',

View File

@ -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) {