Skip to content

feat(fmt): support package.json sorting - #139

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-sort-package-json
Aug 3, 2026
Merged

feat(fmt): support package.json sorting#139
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-sort-package-json

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

rs fmt currently needs a project-installed Prettier plugin to sort package.json fields. This PR adds a flat sortPackageJson option that defaults to false, bundles sort-package-json behind a lazily loaded internal Prettier adapter, and supports the same behavior in base options, overrides, serial execution, and workers. The repository configuration now uses the built-in option instead of prettier-plugin-packagejson.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 18a61d1
Status: ✅  Deploy successful!
Preview URL: https://dd5806a8.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-sort-pac.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit c7d449b into main Aug 3, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-sort-package-json branch August 3, 2026 02:55
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.

1 participant