Files
dsh-easy-desktop/plugins/agentrq/tsdown.config.ts
TommyFang d6f5359873 fix: ship a loadable AgentRQ bundle that stays idle without a workspace URL
The first integration copied sources without lib/, skipped packaging paths, and could fail the default web profile when url was unset.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-16 12:36:04 +08:00

20 lines
713 B
TypeScript

import { defineConfig } from 'tsdown'
// `prepare` runs this after a git install, where the consumer has no project
// references and no type-check context. Keep the build self-contained: bundle
// `src/` to `lib/`, emit declarations, and leave every peer/runtime dependency
// external so the harness supplies its own copies.
export default defineConfig({
entry: ['src/index.ts'],
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'node20',
dts: true,
clean: true,
// Harness packages stay external. The MCP SDK is inlined so a copied
// `lib/index.js` loads without a profile-local node_modules install.
external: [/^@deepseek-ai\//],
noExternal: [/^@modelcontextprotocol\//],
})