From 30c2fd940eaeb9d59f478bf6d53d7e8d96c25331 Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Mon, 13 Aug 2018 07:24:44 -0700 Subject: [PATCH] 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 --- server/runServer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/runServer.js b/server/runServer.js index 369de4783..bad3be828 100644 --- a/server/runServer.js +++ b/server/runServer.js @@ -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);