refactor: finish MCP SDK v2 migration
This commit is contained in:
parent
a76e3a7691
commit
f94cb38b0b
1 changed files with 684 additions and 540 deletions
12
build.bun.ts
12
build.bun.ts
|
|
@ -31,9 +31,15 @@ function buildJs(
|
|||
});
|
||||
}
|
||||
|
||||
// zod is a peerDependency — keep it external so consumers share a single
|
||||
// zod instance (instanceof ZodError / schema.extend() break with duplicate copies).
|
||||
const PEER_EXTERNALS = ["@modelcontextprotocol/sdk", "zod"];
|
||||
// Peer dependencies stay external in the standard entry points so consumers
|
||||
// share one base MCP SDK and Zod instance. The *-with-deps entry points keep
|
||||
// bundling these dependencies for standalone browser use.
|
||||
const PEER_EXTERNALS = [
|
||||
"@modelcontextprotocol/client",
|
||||
"@modelcontextprotocol/core",
|
||||
"@modelcontextprotocol/server",
|
||||
"zod",
|
||||
];
|
||||
|
||||
await Promise.all([
|
||||
buildJs("src/app.ts", {
|
||||
|
|
|
|||
Loading…
Reference in a new issue