Socket
Book a DemoInstallSign in
Socket

rush-sort-package-json

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rush-sort-package-json

Rush plugin for sort package.json file in the project

0.1.1
latest
Source
npmnpm
Version published
Weekly downloads
14K
32.9%
Maintainers
3
Weekly downloads
 
Created
Source

rush-sort-package-json

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

Quick Start

  • Enabling this rush plugin

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

  • Running sort-package-json
rush sort-package-json

What is the plugin for?

We have noticed that:

  • There is some feedback about the package.json file under the rush repository being out of order.
  • 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.

rushstack #2496

Keywords

rush

FAQs

Package last updated on 19 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.