AFFiNE/packages/frontend/i18n/build.mjs
LongYinan fa8655e43e
style: apply prefer-node-protocol lint rule (#5627)
it makes it perfectly clear that the package is a Node.js builtin module.
2024-01-19 03:47:08 +00:00

17 lines
294 B
JavaScript

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