From ba309c703e56feb9ad01cd7e4a348df676ca2727 Mon Sep 17 00:00:00 2001 From: alichherawalla Date: Fri, 24 Jul 2026 21:35:53 +0530 Subject: [PATCH] fix(hooks): package*.json changes trigger the iOS pre-push build too (parity with Android) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A native dep bump affects both platforms; the iOS trigger was missing package*.json (Android had it). Verified both hook build commands compile locally: Android assembleDebug+assembleRelease → both APKs; iOS simulator build (CODE_SIGNING_ALLOWED=NO) → OffgridMobile.app. --- .husky/pre-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-push b/.husky/pre-push index 4836ba75..3b091cc7 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -44,7 +44,7 @@ PUSHED_KOTLIN=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.(kt|kts)$' || true) # native C++ builds). Run the full native builds LOCALLY on push when native / gradle / pods / deps # change. JS-only and docs-only pushes skip these (they stay fast). PUSHED_ANDROID_NATIVE=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.(kt|kts)$|^android/|^package(-lock)?\.json$' | grep -v '/build/' || true) -PUSHED_IOS_NATIVE=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.swift$|^ios/|Podfile' | grep -v 'Pods/' | grep -v '/build/' || true) +PUSHED_IOS_NATIVE=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.swift$|^ios/|Podfile|^package(-lock)?\.json$' | grep -v 'Pods/' | grep -v '/build/' || true) if [ -n "$PUSHED_JS" ]; then echo "▶ JS/TS lint (push range)..."