keithamus / sort-package-json

Sort an Object or package.json based on the well-known package.json keys
MIT License
790 stars 83 forks source link

fix: modernize type declarations #299

Closed regseb closed 1 year ago

regseb commented 1 year ago

I get this error when I check my code that imports sort-package-json.

node_modules/sort-package-json/index.d.ts:49:1 - error TS1203: Export assignment cannot be used when
targeting ECMAScript modules. Consider using 'export default' or another module format instead.

49 export = sortPackageJsonExports

In this pull request, I've replaced the old syntax export= by export default and export. I've also removed sortObjectBy and Field that weren't being used.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 2.5.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: