mirror of
https://github.com/status-im/metro.git
synced 2025-01-10 11:06:06 +00:00
Brent Vatne
b9bfe3b85d
Move packager initialization events to reporter
Summary: This PR depends on #13172 Packager events are mostly logged through the TerminalReporter by default (#13172 makes this configurable). But there are a few things that aren't passed through TerminalReporter. - We [log a banner with some information about the port and what's going on](8c7b32d5f1/local-cli/server/server.js (L22-L32)
) - Also [a message about looking for JS files](8c7b32d5f1/local-cli/server/server.js (L34-L38)
) (not sure what that is for / if it is useful beyond telling the user what directory root they started the packager in, but that's another thing). - If the packager fails to start, then [we log an error message](8c7b32d5f1/local-cli/server/server.js (L41-L61)
). This pull request changes those log messages to be handled by TerminalReporter. I tri Closes https://github.com/facebook/react-native/pull/13209 Differential Revision: D4809759 Pulled By: davidaurelio fbshipit-source-id: 2c427ec0c1accaf54bf6b2d1da882cd6bfaa7829
metro-bundler
The JavaScript bundler for React Native
Description
Languages
JavaScript
100%