Skip to content

Commit a679776

Browse files
committed
Fixed chatwoot translation files on build
1 parent 00cb80f commit a679776

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tsup.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { cpSync } from 'node:fs';
2+
13
import { defineConfig } from 'tsup';
24

35
export default defineConfig({
@@ -8,6 +10,9 @@ export default defineConfig({
810
clean: true,
911
minify: true,
1012
format: ['cjs', 'esm'],
13+
onSuccess: async () => {
14+
cpSync('src/utils/translations', 'dist/translations', { recursive: true });
15+
},
1116
loader: {
1217
'.json': 'file',
1318
},

0 commit comments

Comments
 (0)