From f1aa260d7de9b287e2f65547617f10a790cc762e Mon Sep 17 00:00:00 2001 From: Richard Kenigs Date: Fri, 15 Nov 2024 14:13:44 +0100 Subject: [PATCH] try to fix build and type exports --- packages/builder/package.json | 6 +++++- packages/config/package.json | 6 +++++- packages/mrl/package.json | 6 +++++- packages/sdk/package.json | 6 +++++- packages/types/package.json | 6 +++++- packages/utils/package.json | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index 8912bb8c..6ff14847 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -25,7 +25,11 @@ "homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest", "files": ["build"], "type": "module", - "exports": "./build/index.mjs", + "exports": { + "import": "./build/index.mjs", + "types": "./build/index.d.ts", + "default": "./build/index.mjs" + }, "types": "./build/index.d.ts", "main": "./build/index.mjs", "dependencies": { diff --git a/packages/config/package.json b/packages/config/package.json index f9e5fdf5..11b5ba31 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -25,7 +25,11 @@ "homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest", "files": ["build"], "type": "module", - "exports": "./build/index.mjs", + "exports": { + "import": "./build/index.mjs", + "types": "./build/index.d.ts", + "default": "./build/index.mjs" + }, "types": "./build/index.d.ts", "main": "./build/index.mjs", "dependencies": { diff --git a/packages/mrl/package.json b/packages/mrl/package.json index 02b3c477..5d643d18 100644 --- a/packages/mrl/package.json +++ b/packages/mrl/package.json @@ -22,7 +22,11 @@ "homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest", "files": ["build"], "type": "module", - "exports": "./build/index.mjs", + "exports": { + "import": "./build/index.mjs", + "types": "./build/index.d.ts", + "default": "./build/index.mjs" + }, "types": "./build/index.d.ts", "main": "./build/index.mjs", "dependencies": { diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 2699878e..e89620ec 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -31,7 +31,11 @@ "homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest", "files": ["build"], "type": "module", - "exports": "./build/index.mjs", + "exports": { + "import": "./build/index.mjs", + "types": "./build/index.d.ts", + "default": "./build/index.mjs" + }, "types": "./build/index.d.ts", "main": "./build/index.mjs", "dependencies": { diff --git a/packages/types/package.json b/packages/types/package.json index 0e4583ec..eeddfa85 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -24,7 +24,11 @@ "homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest", "files": ["build"], "type": "module", - "exports": "./build/index.mjs", + "exports": { + "import": "./build/index.mjs", + "types": "./build/index.d.ts", + "default": "./build/index.mjs" + }, "types": "./build/index.d.ts", "main": "./build/index.mjs", "dependencies": { diff --git a/packages/utils/package.json b/packages/utils/package.json index 14643d2b..3c5040b3 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -25,7 +25,11 @@ "homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest", "files": ["build"], "type": "module", - "exports": "./build/index.mjs", + "exports": { + "import": "./build/index.mjs", + "types": "./build/index.d.ts", + "default": "./build/index.mjs" + }, "types": "./build/index.d.ts", "main": "./build/index.mjs", "dependencies": {