mirror of https://github.com/status-im/metro.git
temporarily disable flow check in packager while we figure out versioning issues.
cc @gabelevi, @bhosmer
This commit is contained in:
parent
02aba9adee
commit
09f6ad84fe
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue