Skip to content

Commit 7e28567

Browse files
OttoAllmendingerllm-git
andcommitted
feat(wasm-utxo): expose testutils as a submodule
Add a new export for testutils in package.json to allow other modules to import helper functions and test fixtures. Issue: BTC-2866 Co-authored-by: llm-git <llm-git@ttll.de>
1 parent db2b2e9 commit 7e28567

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

packages/wasm-utxo/js/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export * as fixedScriptWallet from "./fixedScriptWallet/index.js";
1616
export * as descriptorWallet from "./descriptorWallet/index.js";
1717
export * as bip32 from "./bip32.js";
1818
export * as ecpair from "./ecpair.js";
19-
export * as testutils from "./testutils/index.js";
20-
2119
// Only the most commonly used classes and types are exported at the top level for convenience
2220
export { ECPair } from "./ecpair.js";
2321
export { BIP32 } from "./bip32.js";

packages/wasm-utxo/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
"types": "./dist/cjs/js/index.d.ts",
2424
"default": "./dist/cjs/js/index.js"
2525
}
26+
},
27+
"./testutils": {
28+
"import": {
29+
"types": "./dist/esm/js/testutils/index.d.ts",
30+
"default": "./dist/esm/js/testutils/index.js"
31+
},
32+
"require": {
33+
"types": "./dist/cjs/js/testutils/index.d.ts",
34+
"default": "./dist/cjs/js/testutils/index.js"
35+
}
2636
}
2737
},
2838
"main": "./dist/cjs/js/index.js",

0 commit comments

Comments
 (0)