Skip to content

Commit 29c1a67

Browse files
authored
try to fix build and type exports (#389)
1 parent 666821b commit 29c1a67

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

packages/builder/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
2626
"files": ["build"],
2727
"type": "module",
28-
"exports": "./build/index.mjs",
28+
"exports": {
29+
"import": "./build/index.mjs",
30+
"types": "./build/index.d.ts",
31+
"default": "./build/index.mjs"
32+
},
2933
"types": "./build/index.d.ts",
3034
"main": "./build/index.mjs",
3135
"dependencies": {

packages/config/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
2626
"files": ["build"],
2727
"type": "module",
28-
"exports": "./build/index.mjs",
28+
"exports": {
29+
"import": "./build/index.mjs",
30+
"types": "./build/index.d.ts",
31+
"default": "./build/index.mjs"
32+
},
2933
"types": "./build/index.d.ts",
3034
"main": "./build/index.mjs",
3135
"dependencies": {

packages/mrl/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
2323
"files": ["build"],
2424
"type": "module",
25-
"exports": "./build/index.mjs",
25+
"exports": {
26+
"import": "./build/index.mjs",
27+
"types": "./build/index.d.ts",
28+
"default": "./build/index.mjs"
29+
},
2630
"types": "./build/index.d.ts",
2731
"main": "./build/index.mjs",
2832
"dependencies": {

packages/sdk/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
3232
"files": ["build"],
3333
"type": "module",
34-
"exports": "./build/index.mjs",
34+
"exports": {
35+
"import": "./build/index.mjs",
36+
"types": "./build/index.d.ts",
37+
"default": "./build/index.mjs"
38+
},
3539
"types": "./build/index.d.ts",
3640
"main": "./build/index.mjs",
3741
"dependencies": {

packages/types/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
2525
"files": ["build"],
2626
"type": "module",
27-
"exports": "./build/index.mjs",
27+
"exports": {
28+
"import": "./build/index.mjs",
29+
"types": "./build/index.d.ts",
30+
"default": "./build/index.mjs"
31+
},
2832
"types": "./build/index.d.ts",
2933
"main": "./build/index.mjs",
3034
"dependencies": {

packages/utils/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
2626
"files": ["build"],
2727
"type": "module",
28-
"exports": "./build/index.mjs",
28+
"exports": {
29+
"import": "./build/index.mjs",
30+
"types": "./build/index.d.ts",
31+
"default": "./build/index.mjs"
32+
},
2933
"types": "./build/index.d.ts",
3034
"main": "./build/index.mjs",
3135
"dependencies": {

0 commit comments

Comments
 (0)