Fixed validation

This commit is contained in:
uxname committed 2024-08-06 14:00:40 +03:00
1 parent 0993ebe621
commit a9364c4553
2 files changed
+13 -8

No files matched your search

+4
View File
@@ -14,6 +14,10 @@ const dataDirectoryPath = path.resolve(process.cwd(), 'data');
const iconsDirectoryPath = path.resolve(dataDirectoryPath, 'icons');
async function validateJsonFile(filePath, iconUsage) {
// exclude file "list.json"
if (path.basename(filePath) === 'list.json') {
return;
}
const data = JSON.parse(fs.readFileSync(filePath, 'utf8'));
const valid = validate(data);
if (valid) {