mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
20 lines
389 B
TypeScript
20 lines
389 B
TypeScript
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',
|
|
},
|
|
});
|