Merge pull request #780 from judsonjuniorr/V2-fix-chatwoot-translations

Fixed chatwoot translation files on build
This commit is contained in:
Davidson Gomes 2024-08-15 15:33:46 -03:00 committed by GitHub
commit 212d09ef5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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',
}, },