Skip to content

Commit 0cb7920

Browse files
committed
docs(changeset): Add exports field in package.json
1 parent a7b3ee6 commit 0cb7920

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/bright-bears-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kosha": patch
3+
---
4+
5+
Add exports field in package.json

lib/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"files": [
1616
"dist/**"
1717
],
18+
"exports": {
19+
".": {
20+
"types": "./dist/index.d.ts",
21+
"import": "./dist/index.mjs",
22+
"require": "./dist/index.js"
23+
}
24+
},
1825
"scripts": {
1926
"build": "tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c",
2027
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)