Package Exports
- prettier-plugin-packagejson
- prettier-plugin-packagejson/lib/index.cjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prettier-plugin-packagejson) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
prettier-plugin-packagejson
A Prettier plugin to sort the keys of a package.json
file using sort-package-json.
Installation
npm i -D prettier prettier-plugin-packagejson
For prettier v3+ you need to configure
module.exports = {
// add this
plugins: ['prettier-plugin-packagejson'],
}