mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
The web packages were authored against the old single-stage layout where tsc emitted directly to lib/. Master compiles declarations to lib/types/ via tsc -b, then bundles JS into lib/ via tsdown. Point every web package's tsc outDir at lib/types, update package.json types/exports/files to the lib/types declaration + lib/ bundle shape (matching dsh-bash/dsh-tool-bash), and bundle tool-web's subpath entries from lib/types/*.js rather than src.
20 lines
654 B
TypeScript
20 lines
654 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
/**
|
|
* tool-web exposes one package root plus one entry per tool plugin, so each tool
|
|
* can be loaded or replaced independently as a subpath plugin
|
|
* (`@deepseek-ai/dsh-tool-web/search`, `/fetch`). The root tsdown builds only
|
|
* `lib/types/index.js`, so this override adds the subpath entries. Declarations
|
|
* come from `tsc -b` (dts: false), matching every package.
|
|
*/
|
|
export default defineConfig({
|
|
entry: ['lib/types/index.js', 'lib/types/search.js', 'lib/types/fetch.js'],
|
|
outDir: 'lib',
|
|
format: ['esm'],
|
|
platform: 'node',
|
|
target: 'es2024',
|
|
fixedExtension: false,
|
|
dts: false,
|
|
clean: false,
|
|
})
|