From d33ad7b2a05ea33f757e91fc8aabf058c03b1911 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 24 Apr 2025 19:05:30 -0300 Subject: [PATCH] Add watchman watch-del to clean script (#8797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add watchman watch-del-all to clean script This ensures watchman watches are reset during cleanup, preventing issues after upgrades. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * Use watchman watch-del instead of watch-del-all Only reset watches for the current project directory instead of all watches. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --------- Co-authored-by: Claude --- scripts/clean.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/clean.sh b/scripts/clean.sh index 06d5a4748..57bc3f651 100755 --- a/scripts/clean.sh +++ b/scripts/clean.sh @@ -2,6 +2,12 @@ echo Cleaning started +# Reset watchman watches for this project only +if command -v watchman &> /dev/null; then + echo "Resetting watchman watches for this project" + watchman watch-del . 2>/dev/null || echo "No watch found for this directory" +fi + rm -rf ios/Pods rm -rf node_modules rm -rf dist