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