Skip to content

Commit

Permalink
fix: support imports of form dist/* (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Mar 20, 2024
1 parent 5dadec9 commit 0b9910c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions package.json
Expand Up @@ -11,8 +11,22 @@
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./dist": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./dist/*": {
"import": "./dist/esm/*.js",
"require": "./dist/cjs/*.js"
},
"./dist/*.js": {
"import": "./dist/esm/*.js",
"require": "./dist/cjs/*.js"
}
},
"scripts": {
"precommit": "lint-staged",
Expand Down

0 comments on commit 0b9910c

Please sign in to comment.