synopkg
Version:
Consistent dependency versions in large JavaScript Monorepos
45 lines (34 loc) • 704 B
text/mdx
title: sortExports
When using the `format` command, enables sorting the `exports` property of `package.json` files.
By default, Synopkg will order properties according to the Node.js documentation for [conditional exports](HREF_CONDITIONAL_EXPORTS).
## Default Value
```json title=".synopkgrc.json"
{
"sortExports": [
"types",
"node-addons",
"node",
"browser",
"module",
"import",
"require",
"svelte",
"development",
"production",
"script",
"default"
]
}
```
## Disable
Set to an empty array to disable.
```json title=".synopkgrc.json"
{
"sortExports": []
}
```
:::note
There is no equivalent CLI Option for this configuration.
:::