Skip to content

Commit 78edbd3

Browse files
committed
chore(release): update package.json fields that relate with entry-point
Add dependency, module, and types fields. Update exports field.
1 parent 8fc67d9 commit 78edbd3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"reinstall": "bun clean:deps && bun install",
4444
"release": "bun ./scripts/release.ts"
4545
},
46+
"dependencies": {},
4647
"peerDependencies": {
4748
"@commitlint/types": "^19.5.0",
4849
"chalk": "^5.4.1"
@@ -61,9 +62,17 @@
6162
"typescript": "5.8.2"
6263
},
6364
"type": "module",
65+
"module": "dist/index.js",
66+
"types": "dist/index.d.ts",
6467
"exports": {
65-
".": "./dist/index.js",
66-
"./*": "./dist/formatters/*.js",
68+
".": {
69+
"types": "./dist/index.d.ts",
70+
"import": "./dist/index.js"
71+
},
72+
"./*": {
73+
"types": "./dist/formatters/*.d.ts",
74+
"import": "./dist/formatters/*.js"
75+
},
6776
"./package.json": "./package.json"
6877
},
6978
"devEngines": {

0 commit comments

Comments
 (0)