From 29dafa1a8644f7a537499074df334bab8da4ad00 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Fri, 15 Dec 2017 06:21:09 -0800 Subject: [PATCH] Move Terminal to metro-core Reviewed By: rafeca Differential Revision: D6532920 fbshipit-source-id: d1463aa0759a6b6d5cc46b05157518a4ce3eb9bf --- local-cli/bundle/buildBundle.js | 5 +---- local-cli/server/runServer.js | 9 ++------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 5f0119e489ef9c..e121edf17bf261 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -16,10 +16,7 @@ const log = require('../util/log').out('bundle'); * found when Flow v0.54 was deployed. To see the error delete this comment and * run Flow. */ const Server = require('metro/src/Server'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ -const Terminal = require('metro/src/lib/Terminal'); +const {Terminal} = require('metro-core'); /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error * found when Flow v0.54 was deployed. To see the error delete this comment and * run Flow. */ diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index f86f1f133af8fc..8680de5b00cde5 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -13,17 +13,12 @@ 'use strict'; require('../../setupBabel')(); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ + const Metro = require('metro'); const HmrServer = require('metro/src/HmrServer'); -/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error - * found when Flow v0.54 was deployed. To see the error delete this comment and - * run Flow. */ -const Terminal = require('metro/src/lib/Terminal'); +const {Terminal} = require('metro-core'); const attachWebsocketServer = require('./util/attachWebsocketServer'); /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error