import { defineConfig } from 'tsdown';

export default defineConfig([
    {
        // This is the non-bundled version used for the API to the client.
        entry: ['src/main.mts', 'src/api.ts'],
        outDir: 'dist',
        format: ['esm', 'cjs'],
        dts: true,
        sourcemap: true,
        clean: true,
        target: 'node22',
        fixedExtension: false,
        deps: {
            onlyBundle: false,
        },
    },
]);
