Skip to content

Commit a3a1a0c

Browse files
committed
chore: wire up pre-commit to run turbo fix on changed packages
1 parent 9d9f602 commit a3a1a0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ repos:
2525
)
2626
- repo: local
2727
hooks:
28+
- id: turbo-fix
29+
name: Run turbo fix on packages changed since the last commit
30+
language: system
31+
entry: sh -c 'TURBO_SCM_BASE="HEAD^1" pnpm turbo fix --affected'
32+
pass_filenames: false
2833
# Hooks for the remote executor
2934
- id: cargo-fmt-remote-executor
3035
name: Cargo format for remote executor

0 commit comments

Comments
 (0)