a package that helps you keep a beautiful looking package.json that has been sorted as per your configuration
NPM
GitHub
yarn add depensort --dev
npm i -D depensort
The package is used to sort the dependencies in the package.json file in ascending order of key length after every install(or on command)
"scripts":{
"postinstall":"depensort"
}
From the cmd
- Install the package globally
npm i -g depensort
OR
yarn global add depensort
- Call it from the cmd
depensort
Refer to the Developer Release Documentation
use the yarn link
in the package's folder
and yarn link "depensort"
in the folder you want to test the package in
this will install the package as a symbolic link in the test folder
now you can now use the package as if it was installed.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Some files to refer
Please make sure to update tests as appropriate.