Turn off watching file changes (Metro) during builds and publishes
complete
Matt Carroll
Would it be possible to turn off the file watching completely (or add an optional flag) to the expo publish and expo build:* CLI commands? This is quite inconvenient as it increases compute power required and total build/publish time (GitLab CI charges for minutes used).
Below is a link to a GitHub issue relating to this feature:
Brent Vatne
complete
this is available in the latest version of expo-cli! related pr: https://github.com/expo/expo-cli/pull/2149
Brent Vatne
planned
Jonathan Duck
Brent Vatne https://github.com/expo/expo-cli/issues/277#issuecomment-612162505 Has some attempted (failed) solutions using documented Metro and Watchman configuration.
> I tried a .watchmanconfig config, but it doesn't seem to have any affect.
>
> {
> "ignore_dirs": ["node_modules", "public", ".git"]
> }
> Neither does setting the environment CI=true https://facebook.github.io/metro/docs/configuration#watchfolders; could this be an upstream issue?
Brent Vatne
does react-native expose an option for this? if not then we will probably want to upstream that first
André Perdigão
Totally agree, it makes no sense to need watchers when building, waste of resources