mirror of
https://github.com/LCE-Hub/LCE-Workshop.git
synced 2026-07-18 00:10:46 +00:00
fix
This commit is contained in:
@@ -4,7 +4,7 @@ import { parse } from "jsonc-parser";
|
|||||||
const OUTPUT_FILE = "./registry.json";
|
const OUTPUT_FILE = "./registry.json";
|
||||||
const VALID_CATEGORIES = ["Skin", "Texture", "World", "Mod", "DLC"];
|
const VALID_CATEGORIES = ["Skin", "Texture", "World", "Mod", "DLC"];
|
||||||
const REQUIRED_FIELDS = ["id", "name", "author", "description", "extended_description", "category", "thumbnail", "zips", "version"];
|
const REQUIRED_FIELDS = ["id", "name", "author", "description", "extended_description", "category", "thumbnail", "zips", "version"];
|
||||||
const IGNORED_DIRS = [".git", ".github", "scripts"];
|
const IGNORED_DIRS = [".git", ".github", "scripts", "node_modules"];
|
||||||
function validateMeta(meta, pkgDir) {
|
function validateMeta(meta, pkgDir) {
|
||||||
const errors = [];
|
const errors = [];
|
||||||
for (const field of REQUIRED_FIELDS) {
|
for (const field of REQUIRED_FIELDS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user