diff --git a/src/model/forge/mcmodinfo.ts b/src/model/forge/McModInfo.ts similarity index 100% rename from src/model/forge/mcmodinfo.ts rename to src/model/forge/McModInfo.ts diff --git a/src/model/forge/modstoml.ts b/src/model/forge/ModsToml.ts similarity index 100% rename from src/model/forge/modstoml.ts rename to src/model/forge/ModsToml.ts diff --git a/src/model/forge/promotionsslim.ts b/src/model/forge/PromotionsSlim.ts similarity index 100% rename from src/model/forge/promotionsslim.ts rename to src/model/forge/PromotionsSlim.ts diff --git a/src/model/nebula/distrometa.ts b/src/model/nebula/DistroMeta.ts similarity index 100% rename from src/model/nebula/distrometa.ts rename to src/model/nebula/DistroMeta.ts diff --git a/src/model/nebula/servermeta.ts b/src/model/nebula/ServerMeta.ts similarity index 100% rename from src/model/nebula/servermeta.ts rename to src/model/nebula/ServerMeta.ts diff --git a/src/model/resolver/asset.ts b/src/model/resolver/Asset.ts similarity index 100% rename from src/model/resolver/asset.ts rename to src/model/resolver/Asset.ts diff --git a/src/resolver/resolver.ts b/src/resolver/Resolver.ts similarity index 100% rename from src/resolver/resolver.ts rename to src/resolver/Resolver.ts diff --git a/src/util/SchemaUtil.ts b/src/util/SchemaUtil.ts index 9c4699c8..a1639ebb 100644 --- a/src/util/SchemaUtil.ts +++ b/src/util/SchemaUtil.ts @@ -2,13 +2,16 @@ import { mkdirs, pathExists, remove } from 'fs-extra/esm' import { writeFile } from 'fs/promises' import { join, resolve } from 'path' import { createGenerator } from 'ts-json-schema-generator' -import { URL } from 'url' +import { URL, fileURLToPath } from 'url' import { DistroMeta } from '../model/nebula/DistroMeta.js' import { ServerMeta } from '../model/nebula/ServerMeta.js' import { LoggerUtil } from './LoggerUtil.js' const logger = LoggerUtil.getLogger('SchemaUtil') +const __filename = fileURLToPath(import.meta.url) +const __dirname = fileURLToPath(new URL('.', import.meta.url)) + interface SchemaType { /** * URL to the JSON schema for this type of file. diff --git a/src/util/stringutils.ts b/src/util/StringUtils.ts similarity index 100% rename from src/util/stringutils.ts rename to src/util/StringUtils.ts diff --git a/src/util/java/javautil.ts b/src/util/java/JavaUtil.ts similarity index 100% rename from src/util/java/javautil.ts rename to src/util/java/JavaUtil.ts