Skip to content

Commit ba309c7

Browse files
fix(hooks): package*.json changes trigger the iOS pre-push build too (parity with Android)
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.
1 parent f845398 commit ba309c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PUSHED_KOTLIN=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.(kt|kts)$' || true)
4444
# native C++ builds). Run the full native builds LOCALLY on push when native / gradle / pods / deps
4545
# change. JS-only and docs-only pushes skip these (they stay fast).
4646
PUSHED_ANDROID_NATIVE=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.(kt|kts)$|^android/|^package(-lock)?\.json$' | grep -v '/build/' || true)
47-
PUSHED_IOS_NATIVE=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.swift$|^ios/|Podfile' | grep -v 'Pods/' | grep -v '/build/' || true)
47+
PUSHED_IOS_NATIVE=$(printf '%s\n' "$CHANGED_FILES" | grep -E '\.swift$|^ios/|Podfile|^package(-lock)?\.json$' | grep -v 'Pods/' | grep -v '/build/' || true)
4848

4949
if [ -n "$PUSHED_JS" ]; then
5050
echo "▶ JS/TS lint (push range)..."

0 commit comments

Comments
 (0)