[ReactNative] Revert packager ignoring node_modules

This commit is contained in:
Tadeu Zagallo 2015-06-11 10:43:15 -07:00 коммит произвёл Spencer Ahrens
Родитель 6aea50d6f8
Коммит 8d6d0ec4a4
3 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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