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.
I get this error when I check my code that imports
sort-package-json
.In this pull request, I've replaced the old syntax
export=
byexport default
andexport
. I've also removedsortObjectBy
andField
that weren't being used.