Skip to content
This documentation is for v14 alpha, the docs for v13 stable are archived.

sortPackages

When using the format command, enables sorting the root properties of package.json in alphabetical order.

This pairs well with the sortFirst 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.

.syncpackrc.json
{
"sortPackages": true
}