AFFiNE/packages/frontend/i18n/build.mjs

17 lines
294 B
JavaScript
Raw Normal View History

import { fileURLToPath } from 'node:url';
2023-06-27 16:05:24 +03:00
import { runCli } from '@magic-works/i18n-codegen';
runCli(
2023-06-27 16:05:24 +03:00
{
config: fileURLToPath(
new URL('../../../.i18n-codegen.json', import.meta.url)
),
2023-06-27 16:05:24 +03:00
watch: false,
},
error => {
console.error(error);
process.exit(1);
}
);