embed version at build time to fix missing version in global binary
Replace runtime package.json lookup with a compile-time define so the version is baked into dist/mc.js. Previously, resolving ../../package.json relative to import.meta.url failed when the binary was globally installed (no package.json alongside it), causing the banner to display 'vunknown'. - Add scripts/build.ts using Bun.build() with --define __PACKAGE_VERSION__ - Update package.json build script to run scripts/build.ts - Remove readFileSync lookup in output.ts; use the injected constant
Sean2026-02-23
2832b6d8bf444a2c5dc6f41fffedd0ae106b3bc2
parent f19a753