Files
deepseek-harness/tsdown.config.ts
T

28 lines
1.0 KiB
TypeScript
Raw Normal View History

2026-06-11 22:08:10 +08:00
import { defineConfig } from 'tsdown'
/**
* JS bundling for all workspace packages (vendor and the packages hierarchy).
* TypeScript source is compiled first by `tsc -b tsconfig.build.json`; tsdown
2026-06-20 00:26:02 +08:00
* reads only the emitted JS under lib/types and writes lib/index.* runtime
* bundles. Declarations are NOT produced here, hence `dts: false`.
2026-06-11 22:08:10 +08:00
*
* Per-package shape overrides live in `<package>/tsdown.config.ts`
* (schemastery: dual ESM+CJS; logger-console: extra browser entry).
*/
export default defineConfig({
// Explicit globs: `workspace: true` would also discover examples (any
// package.json), but only vendor and the packages hierarchy are pnpm
// workspaces.
workspace: ['vendor/*', 'packages/*/*'],
2026-06-20 00:26:02 +08:00
entry: ['lib/types/index.js'],
2026-06-11 22:08:10 +08:00
outDir: 'lib',
format: ['esm'],
platform: 'node',
target: 'es2024',
// All packages set "type": "module"; fixedExtension false keeps ESM output
// at .js (not .mjs), matching the package.json main/exports fields.
fixedExtension: false,
dts: false,
clean: false,
})