From e3f76ade9dfc589ee6911f31f5db80ffccce0c76 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Thu, 26 Feb 2026 13:03:24 +0700 Subject: [PATCH] test: use `fail_on_changes` in `lefthook.yaml` (#875) Signed-off-by: Alfi Maulana --- lefthook.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lefthook.yaml b/lefthook.yaml index 3e839a2..dc609dc 100644 --- a/lefthook.yaml +++ b/lefthook.yaml @@ -1,5 +1,7 @@ pre-commit: piped: true + fail_on_changes: always + fail_on_changes_diff: true jobs: - name: install dependencies run: pnpm install @@ -15,6 +17,3 @@ pre-commit: - name: build action run: pnpm rollup -c - - - name: check diff - run: git diff --exit-code dist pnpm-lock.yaml {staged_files}