From c17e814197a33dad20cb9d5859b683dda07277c4 Mon Sep 17 00:00:00 2001 From: Callum Date: Mon, 5 Jan 2026 12:28:35 +0000 Subject: [PATCH 1/2] Add a default export for each package, matching browser --- packages/accounts/package.json | 6 +++++- packages/addresses/package.json | 6 +++++- packages/assertions/package.json | 6 +++++- packages/codecs-core/package.json | 6 +++++- packages/codecs-data-structures/package.json | 6 +++++- packages/codecs-numbers/package.json | 6 +++++- packages/codecs-strings/package.json | 6 +++++- packages/codecs/package.json | 6 +++++- packages/compat/package.json | 6 +++++- packages/errors/package.json | 6 +++++- packages/fast-stable-stringify/package.json | 6 +++++- packages/functional/package.json | 6 +++++- packages/instruction-plans/package.json | 6 +++++- packages/instructions/package.json | 6 +++++- packages/keys/package.json | 6 +++++- packages/kit/package.json | 6 +++++- packages/offchain-messages/package.json | 6 +++++- packages/options/package.json | 6 +++++- packages/plugin-core/package.json | 6 +++++- packages/programs/package.json | 6 +++++- packages/promises/package.json | 6 +++++- packages/react/package.json | 6 +++++- packages/rpc-api/package.json | 6 +++++- packages/rpc-graphql/package.json | 6 +++++- packages/rpc-parsed-types/package.json | 6 +++++- packages/rpc-spec-types/package.json | 6 +++++- packages/rpc-spec/package.json | 6 +++++- packages/rpc-subscriptions-api/package.json | 6 +++++- packages/rpc-subscriptions-channel-websocket/package.json | 6 +++++- packages/rpc-subscriptions-spec/package.json | 6 +++++- packages/rpc-subscriptions/package.json | 6 +++++- packages/rpc-transformers/package.json | 6 +++++- packages/rpc-transport-http/package.json | 6 +++++- packages/rpc-types/package.json | 6 +++++- packages/rpc/package.json | 6 +++++- packages/signers/package.json | 6 +++++- packages/subscribable/package.json | 6 +++++- packages/sysvars/package.json | 6 +++++- packages/transaction-confirmation/package.json | 6 +++++- packages/transaction-messages/package.json | 6 +++++- packages/transactions/package.json | 6 +++++- packages/webcrypto-ed25519-polyfill/package.json | 6 +++++- 42 files changed, 210 insertions(+), 42 deletions(-) diff --git a/packages/accounts/package.json b/packages/accounts/package.json index a5a1dfe3b..bdc6ef297 100644 --- a/packages/accounts/package.json +++ b/packages/accounts/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/addresses/package.json b/packages/addresses/package.json index c8c873da2..1938f504b 100644 --- a/packages/addresses/package.json +++ b/packages/addresses/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/assertions/package.json b/packages/assertions/package.json index 85319d617..4a8253ef7 100644 --- a/packages/assertions/package.json +++ b/packages/assertions/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/codecs-core/package.json b/packages/codecs-core/package.json index 89f263867..3a57aeebc 100644 --- a/packages/codecs-core/package.json +++ b/packages/codecs-core/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/codecs-data-structures/package.json b/packages/codecs-data-structures/package.json index 1b06239e6..69124fec0 100644 --- a/packages/codecs-data-structures/package.json +++ b/packages/codecs-data-structures/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/codecs-numbers/package.json b/packages/codecs-numbers/package.json index 20ec0bf86..c3de3899c 100644 --- a/packages/codecs-numbers/package.json +++ b/packages/codecs-numbers/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/codecs-strings/package.json b/packages/codecs-strings/package.json index caca7a74b..907313686 100644 --- a/packages/codecs-strings/package.json +++ b/packages/codecs-strings/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/codecs/package.json b/packages/codecs/package.json index 7b2531290..b99031828 100644 --- a/packages/codecs/package.json +++ b/packages/codecs/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/compat/package.json b/packages/compat/package.json index b8049fcd2..1cd75ad48 100644 --- a/packages/compat/package.json +++ b/packages/compat/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/errors/package.json b/packages/errors/package.json index 9448ce11a..f0b0c6e6d 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/fast-stable-stringify/package.json b/packages/fast-stable-stringify/package.json index 17997a9ab..e823f8109 100644 --- a/packages/fast-stable-stringify/package.json +++ b/packages/fast-stable-stringify/package.json @@ -20,7 +20,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/functional/package.json b/packages/functional/package.json index 2ac5f5bea..1c7119b89 100644 --- a/packages/functional/package.json +++ b/packages/functional/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/instruction-plans/package.json b/packages/instruction-plans/package.json index 89db82b7a..6ee299124 100644 --- a/packages/instruction-plans/package.json +++ b/packages/instruction-plans/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/instructions/package.json b/packages/instructions/package.json index e3d356576..f07569004 100644 --- a/packages/instructions/package.json +++ b/packages/instructions/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/keys/package.json b/packages/keys/package.json index 0e3fb9926..d858c3783 100644 --- a/packages/keys/package.json +++ b/packages/keys/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/kit/package.json b/packages/kit/package.json index 9c3415368..27c4c2d7a 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/offchain-messages/package.json b/packages/offchain-messages/package.json index 6c6961e5a..a9443b91a 100644 --- a/packages/offchain-messages/package.json +++ b/packages/offchain-messages/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/options/package.json b/packages/options/package.json index 6b1853741..ea4e03570 100644 --- a/packages/options/package.json +++ b/packages/options/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/plugin-core/package.json b/packages/plugin-core/package.json index 429ace03f..ca450c4a1 100644 --- a/packages/plugin-core/package.json +++ b/packages/plugin-core/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/programs/package.json b/packages/programs/package.json index b32d38255..e0093fc7b 100644 --- a/packages/programs/package.json +++ b/packages/programs/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/promises/package.json b/packages/promises/package.json index 7d4693a3e..24c7dc7c1 100644 --- a/packages/promises/package.json +++ b/packages/promises/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/react/package.json b/packages/react/package.json index 59fd22c65..a4eca1523 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-api/package.json b/packages/rpc-api/package.json index 9bed7e24a..fac266d88 100644 --- a/packages/rpc-api/package.json +++ b/packages/rpc-api/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-graphql/package.json b/packages/rpc-graphql/package.json index 0d66da480..a1c16bf66 100644 --- a/packages/rpc-graphql/package.json +++ b/packages/rpc-graphql/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-parsed-types/package.json b/packages/rpc-parsed-types/package.json index 4536f20a1..1904c8bea 100644 --- a/packages/rpc-parsed-types/package.json +++ b/packages/rpc-parsed-types/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-spec-types/package.json b/packages/rpc-spec-types/package.json index a1aeb9e63..3b8bbc390 100644 --- a/packages/rpc-spec-types/package.json +++ b/packages/rpc-spec-types/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-spec/package.json b/packages/rpc-spec/package.json index d965e51de..e73550242 100644 --- a/packages/rpc-spec/package.json +++ b/packages/rpc-spec/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-subscriptions-api/package.json b/packages/rpc-subscriptions-api/package.json index 3c5ab52cd..dd082342d 100644 --- a/packages/rpc-subscriptions-api/package.json +++ b/packages/rpc-subscriptions-api/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-subscriptions-channel-websocket/package.json b/packages/rpc-subscriptions-channel-websocket/package.json index cac1082b6..3d12134b1 100644 --- a/packages/rpc-subscriptions-channel-websocket/package.json +++ b/packages/rpc-subscriptions-channel-websocket/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-subscriptions-spec/package.json b/packages/rpc-subscriptions-spec/package.json index 6eb146a24..98636bec4 100644 --- a/packages/rpc-subscriptions-spec/package.json +++ b/packages/rpc-subscriptions-spec/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-subscriptions/package.json b/packages/rpc-subscriptions/package.json index 09ceb6a76..733821ff1 100644 --- a/packages/rpc-subscriptions/package.json +++ b/packages/rpc-subscriptions/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-transformers/package.json b/packages/rpc-transformers/package.json index ff495a728..817af4b6b 100644 --- a/packages/rpc-transformers/package.json +++ b/packages/rpc-transformers/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-transport-http/package.json b/packages/rpc-transport-http/package.json index 389124887..9175921d2 100644 --- a/packages/rpc-transport-http/package.json +++ b/packages/rpc-transport-http/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc-types/package.json b/packages/rpc-types/package.json index 6f1aafc2f..725300395 100644 --- a/packages/rpc-types/package.json +++ b/packages/rpc-types/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/rpc/package.json b/packages/rpc/package.json index f8c496192..9ca4e1163 100644 --- a/packages/rpc/package.json +++ b/packages/rpc/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/signers/package.json b/packages/signers/package.json index 2f608411d..615807685 100644 --- a/packages/signers/package.json +++ b/packages/signers/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/subscribable/package.json b/packages/subscribable/package.json index e6fff7273..f8c17798b 100644 --- a/packages/subscribable/package.json +++ b/packages/subscribable/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/sysvars/package.json b/packages/sysvars/package.json index 9d778a258..f295421a0 100644 --- a/packages/sysvars/package.json +++ b/packages/sysvars/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/transaction-confirmation/package.json b/packages/transaction-confirmation/package.json index afb5c9a41..61ceade3b 100644 --- a/packages/transaction-confirmation/package.json +++ b/packages/transaction-confirmation/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/transaction-messages/package.json b/packages/transaction-messages/package.json index c62a30b5a..8d2bed9c5 100644 --- a/packages/transaction-messages/package.json +++ b/packages/transaction-messages/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/transactions/package.json b/packages/transactions/package.json index c977773ec..26c8b324d 100644 --- a/packages/transactions/package.json +++ b/packages/transactions/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", diff --git a/packages/webcrypto-ed25519-polyfill/package.json b/packages/webcrypto-ed25519-polyfill/package.json index 5cc0fc3e2..7eaa69e82 100644 --- a/packages/webcrypto-ed25519-polyfill/package.json +++ b/packages/webcrypto-ed25519-polyfill/package.json @@ -21,7 +21,11 @@ "require": "./dist/index.node.cjs" }, "react-native": "./dist/index.native.mjs", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": { + "import": "./dist/index.browser.mjs", + "require": "./dist/index.browser.cjs" + } }, "browser": { "./dist/index.node.cjs": "./dist/index.browser.cjs", From 265573a7f5a0ea1ca738096ec69f8c3d3f83e6e4 Mon Sep 17 00:00:00 2001 From: Callum Date: Mon, 5 Jan 2026 12:37:05 +0000 Subject: [PATCH 2/2] Add changeset --- .changeset/easy-cloths-fail.md | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .changeset/easy-cloths-fail.md diff --git a/.changeset/easy-cloths-fail.md b/.changeset/easy-cloths-fail.md new file mode 100644 index 000000000..d6a6d63aa --- /dev/null +++ b/.changeset/easy-cloths-fail.md @@ -0,0 +1,46 @@ +--- +'@solana/rpc-subscriptions-channel-websocket': patch +'@solana/webcrypto-ed25519-polyfill': patch +'@solana/transaction-confirmation': patch +'@solana/codecs-data-structures': patch +'@solana/rpc-subscriptions-spec': patch +'@solana/fast-stable-stringify': patch +'@solana/rpc-subscriptions-api': patch +'@solana/transaction-messages': patch +'@solana/rpc-transport-http': patch +'@solana/instruction-plans': patch +'@solana/offchain-messages': patch +'@solana/rpc-subscriptions': patch +'@solana/rpc-parsed-types': patch +'@solana/rpc-transformers': patch +'@solana/codecs-numbers': patch +'@solana/codecs-strings': patch +'@solana/rpc-spec-types': patch +'@solana/instructions': patch +'@solana/subscribable': patch +'@solana/transactions': patch +'@solana/codecs-core': patch +'@solana/plugin-core': patch +'@solana/rpc-graphql': patch +'@solana/assertions': patch +'@solana/functional': patch +'@solana/addresses': patch +'@solana/rpc-types': patch +'@solana/accounts': patch +'@solana/programs': patch +'@solana/promises': patch +'@solana/rpc-spec': patch +'@solana/options': patch +'@solana/rpc-api': patch +'@solana/signers': patch +'@solana/sysvars': patch +'@solana/codecs': patch +'@solana/compat': patch +'@solana/errors': patch +'@solana/react': patch +'@solana/keys': patch +'@solana/kit': patch +'@solana/rpc': patch +--- + +Add a default export in package.json, matching the browser export