kimi-code/packages/kaos/tsdown.config.ts
2026-05-22 15:54:50 +08:00

21 lines
540 B
TypeScript

import { defineConfig } from 'tsdown';
export default defineConfig({
entry: ['./src/index.ts'],
format: ['esm'],
dts: true,
outDir: 'dist',
clean: true,
banner: {
js: [
"import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';",
"import { dirname as __cjsShimDirname } from 'node:path';",
'const __filename = __cjsShimFileURLToPath(import.meta.url);',
'const __dirname = __cjsShimDirname(__filename);',
].join('\n'),
},
deps: {
alwaysBundle: [],
neverBundle: [],
},
});