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)