mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-17 09:06:36 +08:00
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>
20 lines
713 B
TypeScript
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\//],
|
|
})
|