test: fix image preview (#2874)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-06-27 21:05:24 +08:00
1 parent 5275ff5493
commit ab703fe3ae
5 files changed
+30 -13

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { runCli } from '@magic-works/i18n-codegen';
import { fileURLToPath } from 'url';
await runCli(
{
config: fileURLToPath(new URL('../../.i18n-codegen.json', import.meta.url)),
watch: false,
},
error => {
console.error(error);
process.exit(1);
}
);