Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lefthook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ pre-push:
jobs:
- name: knip
run: pnpm run lint:knip
- name: lockfile-sync-check
glob: '{**/package.json,pnpm-workspace.yaml}'
run: pnpm install --lockfile-only --frozen-lockfile
Copy link

Copilot AI Jan 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The combination of --lockfile-only and --frozen-lockfile flags is contradictory. The --lockfile-only flag tells pnpm to update the lockfile, while --frozen-lockfile requires that the lockfile must not be modified. This command will fail.

For verifying that package.json/pnpm-workspace.yaml changes are reflected in pnpm-lock.yaml, you should use only --frozen-lockfile (which will fail if the lockfile is out of sync) or consider using pnpm install --frozen-lockfile --dry-run to verify without making changes.

Suggested change
run: pnpm install --lockfile-only --frozen-lockfile
run: pnpm install --frozen-lockfile --dry-run

Copilot uses AI. Check for mistakes.
- name: lint-all-on-lockfile-change
glob: 'pnpm-lock.yaml'
run: pnpm lint
- name: test-all-on-lockfile-change
glob: 'pnpm-lock.yaml'
run: pnpm test
Loading