mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 02:13:00 +08:00
test: fix image preview (#2874)
This commit is contained in:
13
packages/i18n/build.mjs
Normal file
13
packages/i18n/build.mjs
Normal 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);
|
||||
}
|
||||
);
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user