- Replace tsc with tsup (esbuild) to inline @kb/* workspace code into a single dist/bin.js - Move @kb/core, @kb/dashboard, @kb/engine from dependencies to devDependencies - Add tsup.config.ts that copies dashboard client assets into dist/client/ - Add bundle output tests verifying shebang, inlined code, and no bare @kb/* imports - Add changeset for the bundled CLI build fix
592 B
592 B
@dustinbyrne/kb
| @dustinbyrne/kb |
|---|
| patch |
Bundle workspace packages into CLI for npm publish. The published package previously declared dependencies on private @kb/core, @kb/dashboard, and @kb/engine workspace packages, causing npm install to fail. Switched the CLI build from tsc to tsup (esbuild) to inline all @kb/* workspace code into a single bundled dist/bin.js, while keeping third-party packages (express, multer, @mariozechner/pi-ai) as external dependencies. Dashboard client assets are now copied into dist/client/ so the published tarball is fully self-contained.