diff --git a/.changeset/thick-clouds-run.md b/.changeset/thick-clouds-run.md new file mode 100644 index 00000000..a22573e3 --- /dev/null +++ b/.changeset/thick-clouds-run.md @@ -0,0 +1,5 @@ +--- +"@caravan/wallets": patch +--- + +fix bundling of internal dependencies diff --git a/packages/caravan-wallets/tsup.config.ts b/packages/caravan-wallets/tsup.config.ts index b80f05bf..0d72484e 100644 --- a/packages/caravan-wallets/tsup.config.ts +++ b/packages/caravan-wallets/tsup.config.ts @@ -7,5 +7,9 @@ export default defineConfig({ globals: { process: false }, }), ], - external: ['bitbox-api'], + // make sure that the bitbox-api package is not bundled + external: ["bitbox-api"], + // noExternal makes sure that certain packages are bundled + // in the final package rather than independently installed + noExternal: ["@caravan/psbt", "@caravan/bitcoin"], });