diff --git a/packages/metro/src/index.flow.js b/packages/metro/src/index.flow.js index 103fc5b100..5f6d23ad7d 100644 --- a/packages/metro/src/index.flow.js +++ b/packages/metro/src/index.flow.js @@ -35,6 +35,7 @@ const makeServeCommand = require('./commands/serve'); const MetroHmrServer = require('./HmrServer'); const IncrementalBundler = require('./IncrementalBundler'); const createWebsocketServer = require('./lib/createWebsocketServer'); +const TerminalReporter = require('./lib/TerminalReporter'); const MetroServer = require('./Server'); const outputBundle = require('./shared/output/bundle'); const chalk = require('chalk'); @@ -140,6 +141,7 @@ type BuildCommandOptions = {} | null; type ServeCommandOptions = {} | null; exports.Terminal = Terminal; +exports.TerminalReporter = TerminalReporter; export type {MetroConfig}; diff --git a/packages/metro/src/lib/TerminalReporter.js b/packages/metro/src/lib/TerminalReporter.js index 63bcfb4d4b..497233fc38 100644 --- a/packages/metro/src/lib/TerminalReporter.js +++ b/packages/metro/src/lib/TerminalReporter.js @@ -515,7 +515,7 @@ class TerminalReporter { /** * Single entry point for reporting events. That allows us to implement the - * corresponding JSON reporter easily and have a consistent reporāˆting. + * corresponding JSON reporter easily and have a consistent reporting. */ update(event: TerminalReportableEvent): void { if (event.type === 'bundle_transform_progressed') { diff --git a/packages/metro/types/index.d.ts b/packages/metro/types/index.d.ts index 039ae2b72c..8238e20145 100644 --- a/packages/metro/types/index.d.ts +++ b/packages/metro/types/index.d.ts @@ -33,6 +33,7 @@ import type {OutputOptions, RequestOptions} from './shared/types'; export {loadConfig, mergeConfig, resolveConfig} from 'metro-config'; export {Terminal} from 'metro-core'; +export {TerminalReporter} from './lib/TerminalReporter'; export {HttpServer, HttpsServer};