Skip to content

Commit

Permalink
[LOCAL COMMIT] mute some flow error coming from Metro (could be rever…
Browse files Browse the repository at this point in the history
…sed)
  • Loading branch information
kelset committed Nov 12, 2018
1 parent 754594b commit b089087
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Expand Up @@ -24,6 +24,7 @@

; Ignore metro
.*/node_modules/metro/.*
.*/node_modules/metro-config/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/invariant')
Expand Down
1 change: 1 addition & 0 deletions local-cli/bundle/buildBundle.js
Expand Up @@ -20,6 +20,7 @@ const path = require('path');
const saveAssets = require('./saveAssets');

import type {RequestOptions, OutputOptions} from './types.flow';
/* $FlowFixMe(site=react_native_oss) */
import type {ConfigT} from 'metro-config/src/configTypes.flow';

async function buildBundle(
Expand Down
1 change: 1 addition & 0 deletions local-cli/core/index.js
Expand Up @@ -29,6 +29,7 @@ const minimist = require('minimist');
const path = require('path');

import type {CommandT} from '../commands';
/* $FlowFixMe(site=react_native_oss) */
import type {ConfigT} from 'metro-config/src/configTypes.flow';

export type RNConfig = {
Expand Down
1 change: 1 addition & 0 deletions local-cli/server/runServer.js
Expand Up @@ -22,6 +22,7 @@ const path = require('path');
const webSocketProxy = require('./util/webSocketProxy');
const MiddlewareManager = require('./middleware/MiddlewareManager');

/* $FlowFixMe(site=react_native_oss) */
import type {ConfigT} from 'metro-config/src/configTypes.flow';

export type Args = {|
Expand Down
1 change: 1 addition & 0 deletions local-cli/server/server.js
Expand Up @@ -13,6 +13,7 @@
const runServer = require('./runServer');

import type {RNConfig} from '../core';
/* $FlowFixMe(site=react_native_oss) */
import type {ConfigT} from 'metro-config/src/configTypes.flow';
import type {Args as RunServerArgs} from './runServer';

Expand Down
2 changes: 2 additions & 0 deletions local-cli/util/Config.js
Expand Up @@ -14,11 +14,13 @@ const getPolyfills = require('../../rn-get-polyfills');
const path = require('path');

const {createBlacklist} = require('metro');
/* $FlowFixMe(site=react_native_oss) */
const {loadConfig} = require('metro-config');

/**
* Configuration file of the CLI.
*/
/* $FlowFixMe(site=react_native_oss) */
import type {ConfigT} from 'metro-config/src/configTypes.flow';

function getProjectRoot() {
Expand Down

0 comments on commit b089087

Please sign in to comment.