import { defineConfig } from 'tsup'
import { tsupBase } from '@tooling/tsup-config'

// Keyed entry so the single subpath emits to `dist/rates-table/index.*`
// (matching the `./rates-table` export), not a flattened `dist/index.*`.
// `tax` ships no bare `.` root — its only capability group is `rates-table`.
export default defineConfig({
  ...tsupBase({ entry: ['src/rates-table/index.ts'] }),
  entry: { 'rates-table/index': 'src/rates-table/index.ts' },
})
