issues
search
kwhitley
/
itty-router
A little router.
MIT License
1.71k
stars
77
forks
source link
fix: TypeScript definitions in package.json/exports
#115
Closed
koistya
closed
1 year ago
koistya
commented
1 year ago
Fixes
package.json/exports
"types"
- can be used by typing systems to resolve the typing file for the given export. This condition should always be included first.
"default"
- the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last.
Reference
https://nodejs.org/api/packages.html
Ref #114
kwhitley
commented
1 year ago
Thanks @koistya!
Fixes
package.json/exports
"types"
- can be used by typing systems to resolve the typing file for the given export. This condition should always be included first."default"
- the generic fallback that always matches. Can be a CommonJS or ES module file. This condition should always come last.Reference
Ref #114