OpenACP/tsup.config.ts
0xmrpeter c82e2b98ed refactor: enhance logging and project structure for improved clarity and maintainability
- Updated logging system to use Pino for structured logging, including session-specific loggers.
- Refactored project structure in CLAUDE.md for better organization and clarity.
- Added new build scripts and commands in README.md for easier usage.
- Improved error handling and logging in core components and Telegram adapter.
- Introduced session log retention and cleanup functionality.
- Updated package.json and pnpm-lock.yaml to include new logging dependencies.
2026-03-19 21:32:18 +07:00

27 lines
455 B
TypeScript

import { defineConfig } from 'tsup'
export default defineConfig({
entry: {
cli: 'src/cli.ts',
index: 'src/index.ts',
},
format: ['esm'],
target: 'node20',
platform: 'node',
splitting: true,
sourcemap: true,
dts: true,
clean: true,
outDir: 'dist-publish/dist',
external: [
'grammy',
'zod',
'nanoid',
'@agentclientprotocol/sdk',
'@inquirer/prompts',
'pino',
'pino-pretty',
'pino-roll',
],
})