Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expose TerminalReporter for Reporter implementations (facebook#1009)
Summary: We are experimenting with creating our own `Reporter` that can intercept `console.log` messages and turn those into a filterable stream that gets subscribed via a WebSocket. IE ```ts // this is ok I guess: import { TerminalReporter } from 'metro/src/lib/TerminalReporter'; // this is preferred, "official" export, hence this PR import { TerminalReporter } from 'metro'; export default class Reporter extends TerminalReporter { update(event) { switch (event.type) { case 'client_log': // send break; default: TerminalReporter.prototype.update(event); } } } ``` To make this easy, I just want to expose `TerminalReporter` from the module, rather than reach into the file. Pull Request resolved: facebook#1009 Test Plan: Not much needed here, AFAICT. Reviewed By: motiz88 Differential Revision: D46842101 Pulled By: robhogan fbshipit-source-id: 94f302a07992bd8cb007b2f107284e59a2be47c9
- Loading branch information