Skip to content

sortExports

When using the format command, enables sorting the exports property of package.json files.

By default, Syncpack will order properties according to the Node.js documentation for conditional exports.

Default Value

.syncpackrc
{
"sortExports": ["types", "node-addons", "node", "browser", "import", "require", "development", "production", "default"]
}

Set to an empty array to disable.

.syncpackrc
{
"sortExports": []
}