altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

fix: dbt-tools bundle copies 220MB of unused .node native binaries

Open anandgupta42 opened this issue 8 months ago • 0 comments

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)

anandgupta42 avatar Mar 20 '26 04:03 anandgupta42