Skip to content

Commit c59732c

Browse files
committed
built app-bridge w/ mcp sdk as external
1 parent 873075e commit c59732c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.bun.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ await $`tsc`;
77
const isDevelopment = Bun.env.NODE_ENV === "development";
88

99
// Build all JavaScript/TypeScript files
10-
function buildJs(entrypoint: string, opts: Record<string, string> = {}) {
10+
function buildJs(entrypoint: string, opts: Record<string, any> = {}) {
1111
return Bun.build({
1212
entrypoints: [entrypoint],
1313
outdir: "dist",
@@ -22,6 +22,6 @@ function buildJs(entrypoint: string, opts: Record<string, string> = {}) {
2222

2323
await Promise.all([
2424
buildJs("src/app.ts", { outdir: "dist/src" }),
25-
buildJs("src/app-bridge.ts", { outdir: "dist/src" }),
25+
buildJs("src/app-bridge.ts", { outdir: "dist/src", external: ["@modelcontextprotocol/sdk"] }),
2626
buildJs("src/react/index.tsx", { outdir: "dist/src/react" }),
2727
])

0 commit comments

Comments
 (0)