From 32eb692e20387bc1860c95898bb30941dbb7c8cf Mon Sep 17 00:00:00 2001 From: /home/neo <158327205+neoapps-dev@users.noreply.github.com> Date: Mon, 6 Apr 2026 12:43:59 +0300 Subject: [PATCH] init --- scripts/registry.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/registry.js b/scripts/registry.js index 4250d47..8aa8919 100644 --- a/scripts/registry.js +++ b/scripts/registry.js @@ -3,6 +3,7 @@ import { join } from "path"; const OUTPUT_FILE = "./registry.json"; const VALID_CATEGORIES = ["Skin", "Texture", "World", "Mod", "DLC"]; const REQUIRED_FIELDS = ["id", "name", "author", "description", "category", "thumbnail", "zips", "version"]; +const IGNORED_DIRS = [".git", ".github", "scripts"]; function validateMeta(meta, pkgDir) { const errors = []; for (const field of REQUIRED_FIELDS) { @@ -48,6 +49,7 @@ try { for (const entry of entries) { const pkgPath = entry; if (!statSync(pkgPath).isDirectory()) continue; + if (!statSync(pkgPath).isDirectory() || IGNORED_DIRS.includes(entry) || entry.startsWith(".")) continue; const metaPath = join(pkgPath, "meta.json"); let raw; try {