Closed viell-dev closed 1 year ago
I noticed there are definition files outputted into the es6 folder as well but from a cursory glance they appear identical to the once in the lib folder so I didn't end up using them.
".": {
"types": "./lib/index.d.ts",
"require": "./lib/index.js",
"import": "./es6/index.js"
},
is just cleaner than:
".": {
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js",
},
"import": {
"types": "./es6/index.d.ts",
"default": "./es6/index.js"
}
},
Needed to use
io-ts
in a package withmoduleResolution: NodeNext
intsconfig.json
so I added the exports field.I'm currently using this fork and it's working fine.
Only
package.json
has been changed.