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

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.

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

Set to an empty array to disable.

.syncpackrc.json
{
"sortExports": []
}