Skip to content

Commit

Permalink
fix: fix api esm export
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Feb 27, 2024
1 parent 9b59982 commit ba275ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
"types": "lib/cjs/index.d.ts",
"module": "lib/esm/index.js",
"exports": {
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.js"
".": {
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.js"
},
"./api/*": {
"require": "./lib/cjs/api.js",
"import": "./lib/esm/api.js"
}
},
"scripts": {
"clean": "rm -rf ./.nyc_output ./node_modules/.cache ./coverage",
Expand Down

0 comments on commit ba275ff

Please sign in to comment.