mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Fixed chatwoot translation files on build
This commit is contained in:
parent
00cb80f173
commit
a679776f89
@ -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',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user