Prevent empty commit error in manga types tag update script
This commit is contained in:
@@ -85,6 +85,10 @@ const updatedContent = outputContent.replace(
|
|||||||
|
|
||||||
writeFileSync(outputFilePath, updatedContent);
|
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:');
|
console.log('Generated MANGA_TAGS_BY_MANGA_TYPE:');
|
||||||
Object.entries(translationsByMangaType).forEach(([mangaType, tags]) => {
|
Object.entries(translationsByMangaType).forEach(([mangaType, tags]) => {
|
||||||
console.log(` ${mangaType}: ${tags.length} tags — ${tags.join(', ')}`);
|
console.log(` ${mangaType}: ${tags.length} tags — ${tags.join(', ')}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user