fix: `npm install -g altimate-code` fails with Cannot find module '@altimateai/altimate-core'
Problem
Running npm install -g altimate-code and then altimate produces:
error: Cannot find module '@altimateai/altimate-core' from '/$bunfs/root/src/index.js'
This affects v0.4.7 (latest published).
Root Cause
-
@altimateai/altimate-coreis a NAPI-RS native module. Bun's bundler inlines the JS loader but cannot embed the.nodenative binary. The published wrapper package doesn't declare it as a dependency, so it's never installed. -
@altimateai/dbt-integrationwas marked as external, but without code splitting Bun inlines dynamicimport()targets into the main chunk — the externalrequire()fails at startup before any try/catch can catch it. -
Bun compiled binaries resolve externals from
/$bunfs/root/(virtual filesystem), not from the physical binary location.
Expected
altimate --version should print the version after npm install -g altimate-code.