mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-25 08:34:39 +00:00
21 lines
540 B
TypeScript
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: [],
|
|
},
|
|
});
|