Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rush-sort-package-json

tiktok31.7kMIT0.1.1TypeScript support: included

Rush plugin for sort package.json file in the project

rush, plugin, command, sort, package.json

readme

rush-sort-package-json

Rush plugin for sort package.json file in the project.

Quick Start

  1. Enabling this rush plugin

Please follow the official doc to enable this plugin in your repo.

  1. Running sort-package-json
rush sort-package-json

What is the plugin for?

We have noticed that:

  1. There is some feedback about the package.json file under the rush repository being out of order.
  2. rush add only puts the added dependencies at the end of the deps field.

Therefore, this command will sort all package.json files in the rush repository.

Q: Why not modify the rush add command to keep it in order?

A: Because many other commands may also change package.json, such as rush version --bump or manually modify dependencies.

Related issues

rushstack #2496

changelog

Change Log - rush-sort-package-json

This log was last generated on Tue, 19 Dec 2023 06:06:52 GMT and should not be manually modified.

0.1.1

Tue, 19 Dec 2023 06:06:52 GMT

Patches

  • Upgrade @rushstack/node-core-library to 3.62.0

0.1.0

Tue, 26 Sep 2023 07:11:19 GMT

Minor changes

  • LICENSE Update

0.0.4

Wed, 31 Aug 2022 04:09:13 GMT

Patches

  • Update readme

0.0.3

Sat, 11 Jun 2022 08:01:34 GMT

Patches

  • Mark as safe for simultaneous processes

0.0.2

Tue, 22 Mar 2022 03:26:29 GMT

Patches

  • init