mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Adds a `--preview` flag to `bun patch` and `bun patch-commit` commands that prints the patch diff to stdout without saving the patch file or modifying package.json. This allows users to preview what a patch will contain before committing to it, making it easier to create minimal patches when porting bug fixes from upstream repositories. Usage: bun patch --preview node_modules/package bun patch-commit --preview node_modules/package Closes #26463 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>