mirror of
https://github.com/benjitaylor/agentation.git
synced 2026-09-14 20:06:45 +08:00
f92103e386
- 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>
39 lines
877 B
TypeScript
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",
|
|
},
|
|
},
|
|
]);
|