Skip to content

Commit

Permalink
Fix passing the --reset-cache CLI argument to Metro
Browse files Browse the repository at this point in the history
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: facebook/react-native#20567 (comment)).

This diff fixes this issue

Reviewed By: mjesun

Differential Revision: D9295634

fbshipit-source-id: a53ec7abff2b7e684a1fd88c3b53ff0b54a1c3c4
  • Loading branch information
rafeca authored and facebook-github-bot committed Aug 13, 2018
1 parent 3e0fa0f commit 30c2fd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/runServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 30c2fd9

Please sign in to comment.