Skip to content

Commit df2ebc6

Browse files
committed
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
1 parent 3a8d6bf commit df2ebc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/wasm-utxo/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
"dist/*/js/wasm/wasm_utxo_bg.wasm",
1515
"dist/*/js/wasm/wasm_utxo_bg.wasm.d.ts",
1616
"dist/*/js/ast/*",
17-
"dist/*/js/index.*"
17+
"dist/*/js/index.*",
18+
"dist/*/js/address.*",
19+
"dist/*/js/utxolibCompat.*",
20+
"dist/*/js/fixedScriptWallet.*",
21+
"dist/*/js/coinName.*",
22+
"dist/*/js/triple.*"
1823
],
1924
"main": "dist/node/js/index.js",
2025
"types": "dist/node/js/index.d.ts",

0 commit comments

Comments
 (0)