Skip to content

fix: suppress package manager output during update#55

Merged
scottlovegrove merged 1 commit intomainfrom
scottl/quiet-update
Feb 25, 2026
Merged

fix: suppress package manager output during update#55
scottlovegrove merged 1 commit intomainfrom
scottl/quiet-update

Conversation

@scottlovegrove
Copy link
Collaborator

@scottlovegrove scottlovegrove commented Feb 25, 2026

Summary

  • Suppress npm/pnpm stdout/stderr during tw update by switching from stdio: 'inherit' to stdio: 'pipe'
  • Wrap the install step in a spinner ("Updating to vX.Y.Z...") for a clean terminal experience
  • Surface captured stderr only on failure, so users still get useful error context

Test plan

  • All existing tests updated and passing (221/221)
  • TypeScript type check passes
  • Manual: tw update when already up-to-date shows clean "Already up to date" message
  • Manual: tw update when update available shows spinner, no npm output, then "Updated to vX.Y.Z"

🤖 Generated with Claude Code

Replace stdio: 'inherit' with stdio: 'pipe' so npm/pnpm output is
captured instead of printed. Wrap the install in a spinner for a
clean "Updating to vX.Y.Z..." experience, and surface stderr only
on failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@doistbot doistbot requested a review from frankieyan February 25, 2026 10:36
@scottlovegrove scottlovegrove self-assigned this Feb 25, 2026
@scottlovegrove scottlovegrove added the 👀 Show PR PR must be reviewed before or after merging label Feb 25, 2026
@scottlovegrove scottlovegrove changed the title feat: suppress package manager output during update fix: suppress package manager output during update Feb 25, 2026
Copy link

@doist-bot doist-bot bot left a comment

Choose a reason for hiding this comment

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

This PR improves the update experience by suppressing package manager output and introducing a spinner for a cleaner, more polished terminal interface. These changes enhance visual clarity while maintaining robustness by surfacing error details only when necessary, and no issues were flagged during the review.

Share FeedbackReview Logs

@scottlovegrove scottlovegrove merged commit fdc9d88 into main Feb 25, 2026
3 checks passed
@scottlovegrove scottlovegrove deleted the scottl/quiet-update branch February 25, 2026 10:46
github-actions bot pushed a commit that referenced this pull request Feb 25, 2026
# [2.7.0](v2.6.0...v2.7.0) (2026-02-25)

### Features

* suppress package manager output during `tw update` ([#55](#55)) ([fdc9d88](fdc9d88))
@github-actions
Copy link

🎉 This PR is included in version 2.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Member

@frankieyan frankieyan left a comment

Choose a reason for hiding this comment

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

Nice one ✨

Image Image

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

Labels

released 👀 Show PR PR must be reviewed before or after merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants