Skip to content

Commit d65855f

Browse files
committed
fix(lefthook): match all package.json files in monorepo
Use **/package.json glob pattern to catch changes in workspace packages.
1 parent a8fd5f8 commit d65855f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lefthook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pre-push:
2121
- name: knip
2222
run: pnpm run lint:knip
2323
- name: lockfile-sync-check
24-
glob: '{package.json,pnpm-workspace.yaml}'
24+
glob: '{**/package.json,pnpm-workspace.yaml}'
2525
run: pnpm install --lockfile-only --frozen-lockfile
2626
- name: lint-all-on-lockfile-change
2727
glob: 'pnpm-lock.yaml'

0 commit comments

Comments
 (0)