Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@akornmeier
Copy link
Owner

This pull request makes a patch-level update to improve gsync compatibility in the tk-dotfiles project.

  • Improved compatibility with gsync to ensure smoother integration. (.changeset/cuddly-laws-watch.md)

  - Add bash 5.x to Brewfile (macOS ships with 3.2)
  - Update gsync shebang to use env bash (respects PATH)
  - Use --if-present for optional build/test scripts
  - Fix terminology: 'unpushed' → 'unmerged' commits
@akornmeier akornmeier self-assigned this Dec 12, 2025
Copilot AI review requested due to automatic review settings December 12, 2025 13:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the robustness of the gsync script by making pnpm build and test commands conditional. Previously, the script would fail if a project didn't have build or test scripts defined in package.json. The changes use pnpm's --if-present flag to gracefully skip these commands when they're not available, making gsync compatible with a wider range of pnpm projects.

  • Updated pnpm command execution to conditionally run build and test scripts
  • Improved user feedback by separating install/build/test steps with clearer messaging
  • Added a changeset documenting the compatibility improvement

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
bin/gsync Modified pnpm command execution to use --if-present flag for conditional build/test script execution, improving compatibility with projects that don't define these scripts
.changeset/cuddly-laws-watch.md Added changeset file documenting the patch-level compatibility improvement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akornmeier akornmeier merged commit 1f6f0c7 into main Dec 12, 2025
8 checks passed
@akornmeier akornmeier deleted the fix/gsync-compatibility branch December 12, 2025 14:20
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.

2 participants