From fe8e938163f63c9a47d5dc345b121bd808986c77 Mon Sep 17 00:00:00 2001 From: Sentinel-Autonomybuilder Date: Mon, 27 Apr 2026 06:31:53 -0700 Subject: [PATCH] fix(pkg): include auth/ and operator/ in published files[] The 2.7.0 npm tarball is broken: index.js re-exports from ./auth/ (adr36, keplr-signdoc, privy-cosmos-signer) and ./operator/ (auto-lease, batch-revoke, feegrant-history, plan-ownership), but neither directory was listed in the package.json files[] array. As a result, `import 'blue-js-sdk'` from a fresh install fails with: Cannot find module '.../node_modules/blue-js-sdk/auth/adr36.js' Cannot find module '.../node_modules/blue-js-sdk/operator/auto-lease.js' Reproduced against the published tarball (npm pack blue-js-sdk@2.7.0): tar tzf blue-js-sdk-2.7.0.tgz | grep -E '(auth|operator)/' # empty After this patch the same command lists 7 files (3 auth + 4 operator). The fix is to add "auth/" and "operator/" to files[]. Verified locally by re-packing and confirming `import('blue-js-sdk')` returns 401 exports including PrivyCosmosSigner. --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 8dc320e..bc8eb10 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,10 @@ "files": [ "*.js", "types/", + "auth/", "chain/", "connection/", + "operator/", "protocol/", "wallet/", "security/",