From 29c1a67656957c0d532e01574bb76f023aced311 Mon Sep 17 00:00:00 2001 From: Richard Kenigs <18597956+Rihyx@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:00:23 +0100 Subject: [PATCH] try to fix build and type exports (#389) --- 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": {