diff --git a/local-cli/bundle/buildBundle.js b/local-cli/bundle/buildBundle.js index 5458877f1..7c9b3f4d0 100644 --- a/local-cli/bundle/buildBundle.js +++ b/local-cli/bundle/buildBundle.js @@ -34,6 +34,7 @@ function buildBundle(args, config, output = outputBundle, packagerInstance) { transformModulePath: args.transformer, extraNodeModules: config.extraNodeModules, nonPersistent: true, + resetCache: args['reset-cache'], }; const requestOpts = { diff --git a/local-cli/bundle/bundleCommandLineArgs.js b/local-cli/bundle/bundleCommandLineArgs.js index 2597a7f13..c22aa3946 100644 --- a/local-cli/bundle/bundleCommandLineArgs.js +++ b/local-cli/bundle/bundleCommandLineArgs.js @@ -57,5 +57,9 @@ module.exports = [ command: 'verbose', description: 'Enables logging', default: false, + }, { + command: 'reset-cache', + description: 'Removes cached files', + default: false } ];