From 19715cf4fb11640d07b973a3eb0e918ee27691ac Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Fri, 14 Oct 2022 06:51:52 -0700 Subject: [PATCH] Add .metro-health-check to .gitignore Summary: Changelog: [General][Changed] - Add Metro health check files to the template's `.gitignore` We're adding an opt-in watcher health check to Metro, which can occasionally leave files named `.metro-health-check*` in the project. To ensure this doesn't clutter people's repos accidentally if enabled, we preemptively add this as a pattern to `.gitignore` in the new project template. We also add it to the React Native repo's `.gitignore` file just in case. Reviewed By: arushikesarwani94 Differential Revision: D40352040 fbshipit-source-id: 261803b684d79292c014205084e61d5e4f7aeb3d --- .gitignore | 3 +++ template/_gitignore | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 8305fe63181bef..6250ebcc4a8737 100644 --- a/.gitignore +++ b/.gitignore @@ -129,3 +129,6 @@ package-lock.json # Android memory profiler files *.hprof + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* diff --git a/template/_gitignore b/template/_gitignore index 27becf965d15f7..16f8c30773d344 100644 --- a/template/_gitignore +++ b/template/_gitignore @@ -58,3 +58,6 @@ yarn-error.log # Ruby / CocoaPods /ios/Pods/ /vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check*