From df2ebc678ba4d8e1fb182cb37f8e2d495004d42c Mon Sep 17 00:00:00 2001 From: Luis Covarrubias Date: Fri, 7 Nov 2025 13:19:24 -0800 Subject: [PATCH] feat: publish modules required by index exports The built entrypoint (index.js) imports ./address, ./fixedScriptWallet, and ./utxolibCompat (and re-exports types like AddressFormat). These files were excluded by the npm "files" allowlist, causing MODULE_NOT_FOUND at runtime for consumers (e.g., BitGoJS @bitgo/utxo-core tests). Include in the allowlist for both node/browser targets: - dist/*/js/address.* - dist/*/js/utxolibCompat.* - dist/*/js/fixedScriptWallet.* - dist/*/js/coinName.* - dist/*/js/triple.* This ensures both JS and .d.ts are published and makes the package consistent with its public API. No API changes; fixes packaging only. TIcket: BTC-2740 --- packages/wasm-utxo/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/wasm-utxo/package.json b/packages/wasm-utxo/package.json index fe678c5..94f17fb 100644 --- a/packages/wasm-utxo/package.json +++ b/packages/wasm-utxo/package.json @@ -14,7 +14,12 @@ "dist/*/js/wasm/wasm_utxo_bg.wasm", "dist/*/js/wasm/wasm_utxo_bg.wasm.d.ts", "dist/*/js/ast/*", - "dist/*/js/index.*" + "dist/*/js/index.*", + "dist/*/js/address.*", + "dist/*/js/utxolibCompat.*", + "dist/*/js/fixedScriptWallet.*", + "dist/*/js/coinName.*", + "dist/*/js/triple.*" ], "main": "dist/node/js/index.js", "types": "dist/node/js/index.d.ts",