Skip to content

Commit

Permalink
fix: add exports field for support esm (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoYoung210 authored Jan 30, 2024
1 parent 8a3bf1b commit c63d6ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"files": [
"dist"
],
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"scripts": {
"prepublishOnly": "cp ../README.md . && pnpm build",
"postpublish": "rm README.md",
Expand Down

0 comments on commit c63d6ec

Please sign in to comment.