Skip to content

chore: Add post-merge hook for automatic pnpm install#13089

Merged
kangfenmao merged 1 commit intomainfrom
chore/auto-install-when-pull
Feb 27, 2026
Merged

chore: Add post-merge hook for automatic pnpm install#13089
kangfenmao merged 1 commit intomainfrom
chore/auto-install-when-pull

Conversation

@EurFelux
Copy link
Copy Markdown
Collaborator

What this PR does

Adds automatic pnpm install execution after git pull or git merge by configuring a post-merge hook via pre-commit.

Why we need it and why it was done in this way

Developers often forget to run pnpm install after pulling changes, leading to inconsistent dependency states. This hook automatically detects changes to package.json or pnpm-lock.yaml and runs the install command.

The following tradeoffs were made:

  • Following the existing post-checkout pattern (not using --frozen-lockfile)

The following alternatives were considered: None

Breaking changes

None.

Special notes for your reviewer

Run pnpm prepare after merging to activate the hook.

Checklist

  • PR: The PR description is expressive enough and will help future contributors
  • Code: Write code that humans can understand and keep it simple
  • Refactor: You have left the code cleaner than you found it
  • Upgrade: Impact of this change on upgrade flows was considered
  • Documentation: Not required (dev tooling change)
  • Self-review: I have reviewed my own code

Release note

NONE

@kangfenmao kangfenmao merged commit 92ef2c0 into main Feb 27, 2026
11 checks passed
@kangfenmao kangfenmao deleted the chore/auto-install-when-pull branch February 27, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants