Socket
Socket
Sign inDemoInstall

rush-sort-package-json

Package Overview
Dependencies
3
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

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


Version published
Maintainers
3
Created

Readme

Source

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.

rushstack #2496

Keywords

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc