build/bin is 1.4MB on its own right now (none shared with dist/lib).
Build together with the lib could result in some chunks in the lib folder that contain bin-only code, and it also conflates some incompatible options: we want to allow top-level await for bin, but we can't yet publish it in the lib without compatibility issues.
Perhaps we could build better and use a separate build or a test to enforce compatibility.
The "right" way to do this would be to let the bin files import cubing/* packages so this both works in bun without build and maps to the build packages when built. Maybe using tsconfig.json?
build/bin
is 1.4MB on its own right now (none shared withdist/lib
).Build together with the lib could result in some chunks in the lib folder that contain
bin
-only code, and it also conflates some incompatible options: we want to allow top-level await forbin
, but we can't yet publish it in the lib without compatibility issues.Perhaps we could build better and use a separate build or a test to enforce compatibility.
The "right" way to do this would be to let the
bin
files importcubing/*
packages so this both works inbun
without build and maps to the build packages when built. Maybe usingtsconfig.json
?