import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['src/index.ts'], outDir: 'dist', tsconfig: './tsconfig.build.json', sourcemap: true, clean: true, format: ['esm'], dts: { // This will make the build fail on TypeScript errors resolve: true, compilerOptions: { strict: true, } }, external: [ 'dotenv', 'fs', 'path', 'crypto', 'https', 'http', 'agentkeepalive', 'zod', '@elizaos/core', 'axios', 'cheerio', 'bun:test', // Add other modules that should be externalized ], });