Skip to content

Commit d32fe37

Browse files
authored
chore(lefthook): add lockfile integrity and dependency change checks (#277)
* chore(lefthook): add lockfile integrity and dependency change checks - Add lockfile-sync-check: verify package.json/pnpm-workspace.yaml changes are reflected in pnpm-lock.yaml using --frozen-lockfile - Add lint-all-on-lockfile-change: run full lint when lockfile changes - Add test-all-on-lockfile-change: run full test suite when lockfile changes These checks ensure dependency changes are properly validated before push. * fix(lefthook): match all package.json files in monorepo Use **/package.json glob pattern to catch changes in workspace packages.
1 parent 12c36f3 commit d32fe37

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lefthook.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ pre-push:
2020
jobs:
2121
- name: knip
2222
run: pnpm run lint:knip
23+
- name: lockfile-sync-check
24+
glob: '{**/package.json,pnpm-workspace.yaml}'
25+
run: pnpm install --lockfile-only --frozen-lockfile
26+
- name: lint-all-on-lockfile-change
27+
glob: 'pnpm-lock.yaml'
28+
run: pnpm lint
29+
- name: test-all-on-lockfile-change
30+
glob: 'pnpm-lock.yaml'
31+
run: pnpm test

0 commit comments

Comments
 (0)