Inlining yaml into the MCP ESM bundle caused dynamic require("process") crashes in production. Externalize yaml for mcp-server, orchestrator, and worker builds.
Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
311 B
TypeScript
14 lines
311 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
const bundledDatabaseExternals = ["yaml"] as const;
|
|
|
|
export default defineConfig({
|
|
entry: ["src/index.ts"],
|
|
format: ["esm"],
|
|
dts: true,
|
|
noExternal: [/^@tasks\//],
|
|
external: [...bundledDatabaseExternals],
|
|
target: "node20",
|
|
platform: "node",
|
|
clean: true,
|
|
});
|