Skip to content

Sort scripts in package.json files - #9492

Merged
mcmire merged 1 commit into
mainfrom
sort-scripts-in-package-json
Jul 13, 2026
Merged

Sort scripts in package.json files#9492
mcmire merged 1 commit into
mainfrom
sort-scripts-in-package-json

Conversation

@mcmire

@mcmire mcmire commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Explanation

Oxfmt has the ability to alphabetically sort scripts defined in package.json files across the monorepo. This commit enables this feature and corrects lint violations.

References

Extracted from #8384.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Tooling and JSON key ordering only; no application logic or script command changes.

Overview
Enables oxfmt to alphabetically sort scripts in package.json files by adding sortPackageJson.sortScripts: true to .oxfmtrc.json.

The diff applies that ordering to the root package.json and packages/wallet-cli/package.json (e.g. create-release-branch, postinstall, skills, and test:prepare move to their sorted positions). Script commands are unchanged—only key order.

Reviewed by Cursor Bugbot for commit 0439165. Bugbot is set up for automated code reviews on this repo. Configure here.

Oxfmt has the ability to alphabetically sort scripts defined in
`package.json` files across the monorepo. This commit enables this
feature and corrects lint violations.
@mcmire
mcmire marked this pull request as ready for review July 13, 2026 17:28
@mcmire
mcmire requested review from a team as code owners July 13, 2026 17:28
@mcmire
mcmire temporarily deployed to default-branch July 13, 2026 17:28 — with GitHub Actions Inactive
@mcmire
mcmire added this pull request to the merge queue Jul 13, 2026
Merged via the queue into main with commit 871fe69 Jul 13, 2026
430 of 431 checks passed
@mcmire
mcmire deleted the sort-scripts-in-package-json branch July 13, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants