built app-bridge w/ mcp sdk as external
This commit is contained in:
parent
873075e690
commit
c59732c4db
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ await $`tsc`;
|
||||||
const isDevelopment = Bun.env.NODE_ENV === "development";
|
const isDevelopment = Bun.env.NODE_ENV === "development";
|
||||||
|
|
||||||
// Build all JavaScript/TypeScript files
|
// Build all JavaScript/TypeScript files
|
||||||
function buildJs(entrypoint: string, opts: Record<string, string> = {}) {
|
function buildJs(entrypoint: string, opts: Record<string, any> = {}) {
|
||||||
return Bun.build({
|
return Bun.build({
|
||||||
entrypoints: [entrypoint],
|
entrypoints: [entrypoint],
|
||||||
outdir: "dist",
|
outdir: "dist",
|
||||||
|
|
@ -22,6 +22,6 @@ function buildJs(entrypoint: string, opts: Record<string, string> = {}) {
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
buildJs("src/app.ts", { outdir: "dist/src" }),
|
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" }),
|
buildJs("src/react/index.tsx", { outdir: "dist/src/react" }),
|
||||||
])
|
])
|
||||||
Loading…
Reference in a new issue