mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-14 04:01:35 +00:00
31 lines
699 B
TypeScript
31 lines
699 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
export default defineConfig([
|
|
{
|
|
entry: ['lib/types/main.js'],
|
|
outDir: 'lib',
|
|
format: ['esm'],
|
|
platform: 'node',
|
|
target: 'es2024',
|
|
fixedExtension: false,
|
|
dts: false,
|
|
clean: false,
|
|
deps: { neverBundle: ['electron'] },
|
|
},
|
|
{
|
|
// Sandboxed Electron preloads run as CommonJS even though the application package is ESM.
|
|
entry: {
|
|
preload: 'lib/types/preload.js',
|
|
'preload-app': 'lib/types/preload-app.js',
|
|
},
|
|
outDir: 'lib',
|
|
format: ['cjs'],
|
|
platform: 'node',
|
|
target: 'es2024',
|
|
fixedExtension: false,
|
|
dts: false,
|
|
clean: false,
|
|
deps: { neverBundle: ['electron'] },
|
|
},
|
|
])
|