Skip to content

Preserve package.json formatting when update - #2070

Merged
bluwy merged 8 commits into
mainfrom
edit-package-json-in-place
Jun 9, 2026
Merged

bluwy merged 8 commits into
mainfrom
edit-package-json-in-place

Conversation

@bluwy

@bluwy bluwy commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

fix #1434

Parse the package.json and edit it by the AST range to preserve formatting. It uses jsonc-parser to parse and apply edits.

@changeset-bot

changeset-bot Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e7d7684

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@changesets/apply-release-plan Minor
@changesets/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.33%. Comparing base (c2348fc) to head (e7d7684).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #2070      +/-   ##
==========================================
+ Coverage   81.13%   81.33%   +0.19%     
==========================================
  Files          61       62       +1     
  Lines        2317     2341      +24     
  Branches      637      641       +4     
==========================================
+ Hits         1880     1904      +24     
  Misses        392      392              
  Partials       45       45              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Andarist Andarist left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like it!

@bluwy
bluwy changed the base branch from next to main June 9, 2026 15:30
@bluwy
bluwy requested a review from Andarist June 9, 2026 15:34
@bluwy
bluwy added this pull request to the merge queue Jun 9, 2026
Merged via the queue into main with commit 694396c Jun 9, 2026
12 checks passed
@bluwy
bluwy deleted the edit-package-json-in-place branch June 9, 2026 15:57
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.

changeset version reformats package.json files

3 participants