import { argv } from 'node:process' import { defineConfig } from 'tsup' export default defineConfig([ { clean: true, format: ['cjs', 'esm'], entry: ['src/bootstrap/main.ts', 'src/main.ts'], tsconfig: 'tsconfig.json', splitting: false, bundle: true, dts: true, outDir: './dist', watch: argv.includes('--watch'), }, ])