Skip to content

Commit 3a277e1

Browse files
Merge pull request off-grid-ai#610 from off-grid-ai/fix/prepush-ios-deps-trigger
fix(hooks): package.json changes also trigger the iOS pre-push build (parity)
2 parents f845398 + ba309c7 commit 3a277e1

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)