packager: clear cache

Reviewed By: davidaurelio

Differential Revision: D4746429

fbshipit-source-id: 1a49a4b6db75658749346f0fd94dad68ff084203
This commit is contained in:
Jean Lauliac 2017-03-21 11:32:14 -07:00 committed by Facebook Github Bot
parent 2b4762f184
commit 4797701b66
1 changed files with 3 additions and 1 deletions

View File

@ -71,6 +71,8 @@ type Options = {
watch: boolean,
};
const JEST_HASTE_MAP_CACHE_BREAKER = 1;
class DependencyGraph extends EventEmitter {
_opts: Options;
@ -104,7 +106,7 @@ class DependencyGraph extends EventEmitter {
ignorePattern: {test: opts.ignoreFilePath},
maxWorkers: opts.maxWorkerCount,
mocksPattern: '',
name: 'react-native-packager',
name: 'react-native-packager-' + JEST_HASTE_MAP_CACHE_BREAKER,
platforms: Array.from(opts.platforms),
providesModuleNodeModules: opts.providesModuleNodeModules,
resetCache: opts.resetCache,