UNPKG

synopkg

Version:

Consistent dependency versions in large JavaScript Monorepos

22 lines (14 loc) 514 B
--- title: sortPackages --- When using the `format` command, enables sorting the root properties of `package.json` in alphabetical order. This pairs well with the [`sortFirst`](CONFIG_SORT_FIRST) option, allowing you to ensure that eg. the `name` and `version` properties are always at the top of the file, with the other properties following in A-Z order. ## Default Value ```json title=".synopkgrc.json" { "sortPackages": true } ``` :::note There is no equivalent CLI Option for this configuration. :::