Skip to content

feat: auto-restart daemon after npm update#13

Merged
yungweng merged 1 commit intomainfrom
feat/auto-restart-daemon
Jan 2, 2026
Merged

feat: auto-restart daemon after npm update#13
yungweng merged 1 commit intomainfrom
feat/auto-restart-daemon

Conversation

@yungweng
Copy link
Copy Markdown
Owner

@yungweng yungweng commented Jan 2, 2026

Summary

  • Adds postinstall hook that automatically restarts the daemon when users run npm update -g github-things-sync
  • Script safely checks if LaunchAgent is installed and running before attempting restart
  • Never fails npm install (wrapped in try/catch with || true fallback)

Closes #12

Test plan

  • Verified postinstall script runs successfully
  • Confirmed daemon restarts with new version
  • Tested script silently exits when daemon not running
  • Verified package tarball includes scripts/ folder

Adds a postinstall hook that automatically restarts the daemon when
users run `npm update -g github-things-sync`. The script safely checks
if the LaunchAgent is installed and running before attempting restart.
@yungweng yungweng merged commit e7f86e9 into main Jan 2, 2026
4 checks passed
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.

Auto-restart daemon after npm update

1 participant