mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 07:06:36 +08:00
chore: format
This commit is contained in:
@@ -68,7 +68,11 @@ try {
|
||||
fs.mkdirSync(outputDir, { recursive: true });
|
||||
}
|
||||
|
||||
fs.writeFileSync(OUTPUT_FILE, JSON.stringify(themes, null, 2) + '\n', 'utf-8');
|
||||
fs.writeFileSync(
|
||||
OUTPUT_FILE,
|
||||
JSON.stringify(themes, null, 2) + '\n',
|
||||
'utf-8',
|
||||
);
|
||||
console.log(`Successfully generated themes.json at ${OUTPUT_FILE}`);
|
||||
} catch (error) {
|
||||
console.error('Failed to generate themes.json:', error);
|
||||
|
||||
@@ -29,9 +29,7 @@ function mergeLocale(locale) {
|
||||
const suffix = `.${locale}.json`;
|
||||
for (const name of readdirSync(fragmentsDir).sort()) {
|
||||
if (!name.endsWith(suffix)) continue;
|
||||
const frag = JSON.parse(
|
||||
readFileSync(resolve(fragmentsDir, name), 'utf8'),
|
||||
);
|
||||
const frag = JSON.parse(readFileSync(resolve(fragmentsDir, name), 'utf8'));
|
||||
deepMerge(data, frag);
|
||||
console.log(`merged ${name}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user