Fix passing the --reset-cache CLI argument to Metro

Summary:
@public

While debugging a RN 0.57 blocking issue, we found that the `--reset-cache` cli arg is not being passed to Metro (more info: https://github.com/facebook/react-native/issues/20567#issuecomment-412513942).

This diff fixes this issue

Reviewed By: mjesun

Differential Revision: D9295634

fbshipit-source-id: a53ec7abff2b7e684a1fd88c3b53ff0b54a1c3c4
This commit is contained in:
Rafael Oleza 2018-08-13 07:24:44 -07:00 committed by Facebook Github Bot
parent 5892d5c3cf
commit 0f08635991
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ async function runServer(args: Args, config: ConfigT) {
config.maxWorkers = args.maxWorkers;
config.server.port = args.port;
config.reporter = reporter;
config.resetCache = args.resetCache;
config.server.enhanceMiddleware = middleware =>
middlewareManager.getConnectInstance().use(middleware);