import { defineConfig } from 'tsup'; /** * The workspace packages are pure TypeScript source with no build step, so they are * bundled in here. Everything from node_modules stays external, which keeps the native * better-sqlite3 binding loading normally at runtime. */ export default defineConfig({ entry: { index: 'src/index.ts', 'db/migrate.cli': 'src/db/migrate.cli.ts', 'db/seed.cli': 'src/db/seed.cli.ts' }, format: ['esm'], target: 'node22', platform: 'node', outDir: 'dist', clean: true, sourcemap: true, noExternal: [/^@impuestos\//], });