Files
Dennis Jin f92103e386 Extract MCP server to separate package and rename _package-export to package
- Move server code (MCP, HTTP, SQLite) to new `mcp/` workspace package
- Remove server dependencies from main agentation package (now frontend-only)
- Rename `_package-export/` directory to `package/`
- Add `pnpm mcp` command to run MCP server from root
- Update all workspace references and build configs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 13:38:22 -05:00

39 lines
877 B
TypeScript

import { defineConfig } from "tsup";
import * as fs from "fs";
// Read version from package.json at build time
const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8"));
const VERSION = pkg.version;
export default defineConfig([
// Main library export
{
entry: ["src/index.ts"],
format: ["cjs", "esm"],
dts: true,
splitting: false,
sourcemap: true,
clean: true,
external: ["@modelcontextprotocol/sdk", "zod", "better-sqlite3"],
define: {
__VERSION__: JSON.stringify(VERSION),
},
},
// CLI
{
entry: ["src/cli.ts"],
format: ["cjs"],
dts: false,
splitting: false,
sourcemap: true,
clean: false,
external: ["@modelcontextprotocol/sdk", "zod", "better-sqlite3"],
define: {
__VERSION__: JSON.stringify(VERSION),
},
banner: {
js: "#!/usr/bin/env node",
},
},
]);