feat(KB-131): bundle workspace dependencies into CLI for npm publish
- 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
This commit is contained in:
@@ -33,6 +33,12 @@ describe("CLI package.json publishing config", () => {
|
||||
it("is not private", () => {
|
||||
expect(pkg.private).not.toBe(true);
|
||||
});
|
||||
|
||||
it("does not have @kb/* workspace packages in dependencies", () => {
|
||||
const deps = Object.keys(pkg.dependencies || {});
|
||||
const kbDeps = deps.filter((d) => d.startsWith("@kb/"));
|
||||
expect(kbDeps).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Scoped @kb/* packages publishing config", () => {
|
||||
|
||||
Reference in New Issue
Block a user