temporarily disable flow check in packager while we figure out versioning issues.

cc @gabelevi, @bhosmer
This commit is contained in:
Spencer Ahrens 2015-04-27 16:13:47 -07:00
parent 02aba9adee
commit 09f6ad84fe
1 changed files with 2 additions and 1 deletions

View File

@ -13,11 +13,12 @@ var exec = require('child_process').exec;
var Activity = require('./react-packager/src/Activity'); var Activity = require('./react-packager/src/Activity');
var hasWarned = {}; var hasWarned = {};
var DISABLE_FLOW_CHECK = true; // temporarily disable while we figure out versioning issues.
function getFlowTypeCheckMiddleware(options) { function getFlowTypeCheckMiddleware(options) {
return function(req, res, next) { return function(req, res, next) {
var isBundle = req.url.indexOf('.bundle') !== -1; var isBundle = req.url.indexOf('.bundle') !== -1;
if (options.skipflow || !isBundle) { if (DISABLE_FLOW_CHECK || options.skipflow || !isBundle) {
return next(); return next();
} }
if (options.flowroot || options.projectRoots.length === 1) { if (options.flowroot || options.projectRoots.length === 1) {