Skip to content

Commit

Permalink
chore: add exports to packages.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielBenichou committed Nov 23, 2023
1 parent 9aa0f49 commit 76897fe
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.1",
"description": "🐨 Lazy & Synchronous flows for modals interactions in React",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -49,5 +48,35 @@
"repository": {
"type": "git",
"url": "git+https://github.com/tembell/paresseux.git"
},
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"default": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"./helpers": {
"import": {
"types": "./dist/helpers/index.d.mts",
"default": "./dist/helpers/index.mjs"
},
"require": {
"types": "./dist/helpers/index.d.cts",
"default": "./dist/helpers/index.cjs"
},
"default": {
"types": "./dist/helpers/index.d.ts",
"default": "./dist/helpers/index.js"
}
}
}
}

0 comments on commit 76897fe

Please sign in to comment.