Skip to content

feat(sync): auto-run package install after sync#72

Merged
javoire merged 1 commit intomainfrom
jd/sync-auto-install
Mar 5, 2026
Merged

feat(sync): auto-run package install after sync#72
javoire merged 1 commit intomainfrom
jd/sync-auto-install

Conversation

@javoire
Copy link
Owner

@javoire javoire commented Mar 5, 2026

After rebasing branches during sync, package.json may change (e.g., a parent branch updated dependencies). This automatically detects and runs the appropriate install command (yarn, pnpm, npm, bun) if a lockfile exists.

Configurable via git config stack.postSyncInstall:

  • Not set or "auto": auto-detect from lockfiles (default)
  • "false": disabled
  • Any other value: treated as custom command to run

Includes comprehensive tests for auto-detection and configuration options.

After rebasing branches during sync, package.json may change (e.g. a parent branch updated dependencies). This automatically detects and runs the appropriate install command (yarn, pnpm, npm, bun) if a lockfile exists.

Configurable via git config stack.postSyncInstall:
- Not set or "auto": auto-detect from lockfiles (default)
- "false": disabled
- Any other value: treated as custom command to run

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@javoire javoire marked this pull request as ready for review March 5, 2026 15:01
@javoire javoire merged commit 109aa13 into main Mar 5, 2026
1 check passed
@javoire javoire deleted the jd/sync-auto-install branch March 5, 2026 15:01
javoire pushed a commit that referenced this pull request Mar 5, 2026
…026-03-05)

### Features

* **sync:** auto-run package install after sync ([#72](#72)) ([109aa13](109aa13))
@javoire
Copy link
Owner Author

javoire commented Mar 5, 2026

🎉 This PR is included in version 1.20.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant