Skip to content

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

@anandgupta42

Description

@anandgupta42

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions