From c59732c4db508037055345fdbd886a596d619c42 Mon Sep 17 00:00:00 2001 From: ochafik Date: Fri, 21 Nov 2025 22:00:47 +0000 Subject: [PATCH] built app-bridge w/ mcp sdk as external --- build.bun.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.bun.ts b/build.bun.ts index b537346..7e9ec47 100644 --- a/build.bun.ts +++ b/build.bun.ts @@ -7,7 +7,7 @@ await $`tsc`; const isDevelopment = Bun.env.NODE_ENV === "development"; // Build all JavaScript/TypeScript files -function buildJs(entrypoint: string, opts: Record = {}) { +function buildJs(entrypoint: string, opts: Record = {}) { return Bun.build({ entrypoints: [entrypoint], outdir: "dist", @@ -22,6 +22,6 @@ function buildJs(entrypoint: string, opts: Record = {}) { await Promise.all([ buildJs("src/app.ts", { outdir: "dist/src" }), - buildJs("src/app-bridge.ts", { outdir: "dist/src" }), + buildJs("src/app-bridge.ts", { outdir: "dist/src", external: ["@modelcontextprotocol/sdk"] }), buildJs("src/react/index.tsx", { outdir: "dist/src/react" }), ]) \ No newline at end of file