test: fix image preview (#2874)

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

13
packages/i18n/build.mjs Normal file
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);
}
);

View File

@@ -15,6 +15,7 @@
}
},
"scripts": {
"build": "node build.mjs",
"sync-languages": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/sync.ts",
"sync-languages:check": "yarn run sync-languages --check",
"download-resources": "NODE_OPTIONS=--experimental-fetch ts-node-esm src/scripts/download.ts"