Prevent empty commit error in manga types tag update script

This commit is contained in:
schroda
2026-04-17 00:55:37 +02:00
parent 0b88db3e4e
commit c4c2a616f6

View File

@@ -85,6 +85,10 @@ const updatedContent = outputContent.replace(
writeFileSync(outputFilePath, updatedContent);
execSync('yarn tsc', { stdio: 'inherit' });
execSync(`yarn oxlint --fix ${OUTPUT_FILE_PATH}`, { stdio: 'inherit' });
execSync(`yarn oxfmt --write ${OUTPUT_FILE_PATH}`, { stdio: 'inherit' });
console.log('Generated MANGA_TAGS_BY_MANGA_TYPE:');
Object.entries(translationsByMangaType).forEach(([mangaType, tags]) => {
console.log(` ${mangaType}: ${tags.length} tags — ${tags.join(', ')}`);