Fixed chatwoot translation files on build

This commit is contained in:
Judson Cairo 2024-08-15 15:32:17 -03:00
parent 00cb80f173
commit a679776f89

View File

@ -1,3 +1,5 @@
import { cpSync } from 'node:fs';
import { defineConfig } from 'tsup'; import { defineConfig } from 'tsup';
export default defineConfig({ export default defineConfig({
@ -8,6 +10,9 @@ export default defineConfig({
clean: true, clean: true,
minify: true, minify: true,
format: ['cjs', 'esm'], format: ['cjs', 'esm'],
onSuccess: async () => {
cpSync('src/utils/translations', 'dist/translations', { recursive: true });
},
loader: { loader: {
'.json': 'file', '.json': 'file',
}, },