2026-03-19 17:29:37 +07:00
|
|
|
import { defineConfig } from 'tsup'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
entry: {
|
2026-03-19 19:03:47 +07:00
|
|
|
cli: 'src/cli.ts',
|
|
|
|
|
index: 'src/index.ts',
|
2026-03-19 17:29:37 +07:00
|
|
|
},
|
|
|
|
|
format: ['esm'],
|
|
|
|
|
target: 'node20',
|
|
|
|
|
platform: 'node',
|
|
|
|
|
splitting: true,
|
|
|
|
|
sourcemap: true,
|
2026-03-19 19:03:47 +07:00
|
|
|
dts: true,
|
2026-03-19 17:29:37 +07:00
|
|
|
clean: true,
|
|
|
|
|
outDir: 'dist-publish/dist',
|
|
|
|
|
external: [
|
|
|
|
|
'grammy',
|
|
|
|
|
'zod',
|
|
|
|
|
'nanoid',
|
|
|
|
|
'@agentclientprotocol/sdk',
|
2026-03-19 18:38:31 +07:00
|
|
|
'@inquirer/prompts',
|
2026-03-19 21:32:18 +07:00
|
|
|
'pino',
|
|
|
|
|
'pino-pretty',
|
|
|
|
|
'pino-roll',
|
2026-03-19 17:29:37 +07:00
|
|
|
],
|
|
|
|
|
})
|