aboutsummaryrefslogtreecommitdiff
path: root/tsup.config.ts
blob: 214eb7186441016fd3b2eeb82cc4e640ccca0288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { defineConfig } from 'tsup';
import { allLocales } from './src';

export default defineConfig({
  entry: [
    'src/index.ts',
    ...Object.keys(allLocales).map((locale) => `src/locale/${locale}.ts`),
  ],
  outDir: 'dist',
  clean: true,
  format: ['esm', 'cjs'],
  target: ['es2022', 'node18'],
  dts: true,
  minify: true,
  sourcemap: false,
  splitting: true,
});