mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
18 lines
547 B
TypeScript
18 lines
547 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
/**
|
|
* Schemastery publishes dual-format output (package.json: main → lib/index.cjs,
|
|
* module → lib/index.mjs). The entry is the JS emitted by tsc under lib/types;
|
|
* pin the bundled extensions explicitly so the package retains both formats.
|
|
*/
|
|
export default defineConfig({
|
|
entry: ['lib/types/index.js'],
|
|
outDir: 'lib',
|
|
format: ['esm', 'cjs'],
|
|
platform: 'node',
|
|
target: 'es2024',
|
|
outExtensions: ({ format }) => ({ js: format === 'es' ? '.mjs' : '.cjs' }),
|
|
dts: false,
|
|
clean: false,
|
|
})
|