Skip to content

Commit fcdc8e9

Browse files
committed
chore: improve package exports and update dependencies
1 parent 72ff57c commit fcdc8e9

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

packages/kkrpc/package.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kkrpc",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"type": "module",
55
"repository": {
66
"type": "git",
@@ -15,22 +15,38 @@
1515
},
1616
"exports": {
1717
".": {
18-
"types": "./dist/mod.d.ts",
18+
"types": {
19+
"import": "./dist/mod.d.ts",
20+
"require": "./dist/mod.cjs",
21+
"default": "./dist/mod.js"
22+
},
1923
"import": "./dist/mod.js",
2024
"require": "./dist/mod.cjs"
2125
},
2226
"./browser": {
23-
"types": "./dist/browser-mod.d.ts",
27+
"types": {
28+
"import": "./dist/browser-mod.d.ts",
29+
"require": "./dist/browser-mod.cjs",
30+
"default": "./dist/browser-mod.js"
31+
},
2432
"import": "./dist/browser-mod.js",
2533
"require": "./dist/browser-mod.cjs"
2634
},
2735
"./http": {
28-
"types": "./dist/http.d.ts",
36+
"types": {
37+
"import": "./dist/http.d.ts",
38+
"require": "./dist/http.cjs",
39+
"default": "./dist/http.js"
40+
},
2941
"import": "./dist/http.js",
3042
"require": "./dist/http.cjs"
3143
},
3244
"./chrome": {
33-
"types": "./dist/chrome.d.ts",
45+
"types": {
46+
"import": "./dist/chrome.d.ts",
47+
"require": "./dist/chrome.cjs",
48+
"default": "./dist/chrome.js"
49+
},
3450
"import": "./dist/chrome.js",
3551
"require": "./dist/chrome.cjs"
3652
}
@@ -42,7 +58,7 @@
4258
"tslib": "^2.8.1",
4359
"tsup": "^8.3.5",
4460
"typedoc": "^0.27.6",
45-
"verify-package-export": "^0.0.2"
61+
"verify-package-export": "^0.0.3"
4662
},
4763
"peerDependencies": {
4864
"typescript": "^5.0.0"

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)