evolution-api / tsup.config.ts
oex2003's picture
Deploy Evolution API to Hugging Face Space
5e518ea
import { cpSync } from 'node:fs';
import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src'],
outDir: 'dist',
splitting: false,
sourcemap: true,
clean: true,
minify: true,
format: ['cjs', 'esm'],
onSuccess: async () => {
cpSync('src/utils/translations', 'dist/translations', { recursive: true });
},
loader: {
'.json': 'file',
'.yml': 'file',
},
});