AFFiNE/packages/frontend/i18n/dev.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

16 lines
272 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: true,
},
error => {
console.error(error);
}
);