packager: clear cache
Reviewed By: davidaurelio Differential Revision: D4746429 fbshipit-source-id: 1a49a4b6db75658749346f0fd94dad68ff084203
This commit is contained in:
parent
2b4762f184
commit
4797701b66
|
@ -71,6 +71,8 @@ type Options = {
|
||||||
watch: boolean,
|
watch: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const JEST_HASTE_MAP_CACHE_BREAKER = 1;
|
||||||
|
|
||||||
class DependencyGraph extends EventEmitter {
|
class DependencyGraph extends EventEmitter {
|
||||||
|
|
||||||
_opts: Options;
|
_opts: Options;
|
||||||
|
@ -104,7 +106,7 @@ class DependencyGraph extends EventEmitter {
|
||||||
ignorePattern: {test: opts.ignoreFilePath},
|
ignorePattern: {test: opts.ignoreFilePath},
|
||||||
maxWorkers: opts.maxWorkerCount,
|
maxWorkers: opts.maxWorkerCount,
|
||||||
mocksPattern: '',
|
mocksPattern: '',
|
||||||
name: 'react-native-packager',
|
name: 'react-native-packager-' + JEST_HASTE_MAP_CACHE_BREAKER,
|
||||||
platforms: Array.from(opts.platforms),
|
platforms: Array.from(opts.platforms),
|
||||||
providesModuleNodeModules: opts.providesModuleNodeModules,
|
providesModuleNodeModules: opts.providesModuleNodeModules,
|
||||||
resetCache: opts.resetCache,
|
resetCache: opts.resetCache,
|
||||||
|
|
Loading…
Reference in New Issue