feat(row): Add exports for native ESM support (#840)

This commit is contained in:
Bu Kinoshita
2023-07-14 19:28:20 -03:00
committed by GitHub
parent dbe85b8389
commit cee86f66dc
+12
View File
@@ -9,6 +9,18 @@
"files": [
"dist/**"
],
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"license": "MIT",
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --external react",