Skip to content

Commit b7c8c60

Browse files
committed
fix: package.json exports
1 parent 0b54f32 commit b7c8c60

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

packages/client/package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
"import": "./dist/actions/index.js",
2222
"require": "./dist/actions/index.cjs"
2323
},
24+
"./ethers": {
25+
"types": "./dist/ethers.d.cts",
26+
"import": "./dist/ethers.js",
27+
"require": "./dist/ethers.cjs"
28+
},
29+
"./viem": {
30+
"types": "./dist/viem.d.cts",
31+
"import": "./dist/viem.js",
32+
"require": "./dist/viem.cjs"
33+
},
2434
"./test-utils": {
2535
"types": "./dist/test-utils.d.cts",
2636
"import": "./dist/test-utils.js",
@@ -33,10 +43,10 @@
3343
"./dist/actions/index.d.ts"
3444
],
3545
"ethers": [
36-
"./dist/ethers/index.d.ts"
46+
"./dist/ethers.d.ts"
3747
],
3848
"viem": [
39-
"./dist/viem/index.d.ts"
49+
"./dist/viem.d.ts"
4050
],
4151
"test-utils": [
4252
"./dist/test-utils.d.ts"

packages/react/package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,24 @@
1616
"import": "./dist/index.js",
1717
"require": "./dist/index.cjs"
1818
},
19-
"./actions": {
20-
"types": "./dist/actions/index.d.cts",
21-
"import": "./dist/actions/index.js",
22-
"require": "./dist/actions/index.cjs"
19+
"./ethers": {
20+
"types": "./dist/ethers.d.cts",
21+
"import": "./dist/ethers.js",
22+
"require": "./dist/ethers.cjs"
23+
},
24+
"./viem": {
25+
"types": "./dist/viem.d.cts",
26+
"import": "./dist/viem.js",
27+
"require": "./dist/viem.cjs"
2328
}
2429
},
2530
"typesVersions": {
2631
"*": {
27-
"actions": [
28-
"./dist/actions/index.d.ts"
29-
],
3032
"ethers": [
31-
"./dist/ethers/index.d.ts"
33+
"./dist/ethers.d.ts"
3234
],
3335
"viem": [
34-
"./dist/viem/index.d.ts"
36+
"./dist/viem.d.ts"
3537
]
3638
}
3739
},

0 commit comments

Comments
 (0)