Problem
The copyAssets() function in publish.ts uses cp -r ../dbt-tools/dist which copies the entire dist directory. After bun build, that directory contains ~220MB of @altimateai/altimate-core.node native binaries that bun copies as transitive build artifacts — but dbt-tools never loads them.
| Component | Size | Needed? |
|---|
index.js | 860 KB | Yes |
altimate_python_packages/ | 2.2 MB | Yes |
5 .node native binaries | 220 MB | No |
Fix
Copy only index.js and altimate_python_packages/ instead of the entire dist directory.
Credit: @suryaiyer95 (PR #316 comment)
Problem
The
copyAssets()function inpublish.tsusescp -r ../dbt-tools/distwhich copies the entire dist directory. Afterbun build, that directory contains ~220MB of@altimateai/altimate-core.nodenative binaries that bun copies as transitive build artifacts — but dbt-tools never loads them.index.jsaltimate_python_packages/.nodenative binariesFix
Copy only
index.jsandaltimate_python_packages/instead of the entire dist directory.Credit: @suryaiyer95 (PR #316 comment)