openpencil/packages/cli/tsdown.config.ts
Danila Poyarkov 2b32a8c7d3 feat(mcp): add local transport discovery
- Prefer private Unix sockets with TCP fallback for local MCP clients

- Unify HTTP and WebSocket lifecycle, authentication, and cleanup

- Discover transport details from an owner-only runtime file
2026-07-25 21:29:03 +03:00

19 lines
422 B
TypeScript

import { defineConfig } from 'tsdown'
export default defineConfig({
entry: {
index: './src/index.ts'
},
platform: 'node',
format: ['esm'],
sourcemap: true,
clean: true,
outDir: './dist',
treeshake: false,
deps: {
alwaysBundle: ['@open-pencil/mcp', /^@open-pencil\/mcp\//],
neverBundle: ['@open-pencil/core', /^@open-pencil\/core\//, 'canvaskit-wasm', /^node:/],
onlyBundle: false
}
})