From 71c2e9baa02770deb43e80ad7c4df5ea52245707 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Sat, 18 Mar 2023 16:56:10 -0400 Subject: [PATCH] Fix git casing, esm bug. --- src/model/forge/{mcmodinfo.ts => McModInfo.ts} | 0 src/model/forge/{modstoml.ts => ModsToml.ts} | 0 src/model/forge/{promotionsslim.ts => PromotionsSlim.ts} | 0 src/model/nebula/{distrometa.ts => DistroMeta.ts} | 0 src/model/nebula/{servermeta.ts => ServerMeta.ts} | 0 src/model/resolver/{asset.ts => Asset.ts} | 0 src/resolver/{resolver.ts => Resolver.ts} | 0 src/util/SchemaUtil.ts | 5 ++++- src/util/{stringutils.ts => StringUtils.ts} | 0 src/util/java/{javautil.ts => JavaUtil.ts} | 0 10 files changed, 4 insertions(+), 1 deletion(-) rename src/model/forge/{mcmodinfo.ts => McModInfo.ts} (100%) rename src/model/forge/{modstoml.ts => ModsToml.ts} (100%) rename src/model/forge/{promotionsslim.ts => PromotionsSlim.ts} (100%) rename src/model/nebula/{distrometa.ts => DistroMeta.ts} (100%) rename src/model/nebula/{servermeta.ts => ServerMeta.ts} (100%) rename src/model/resolver/{asset.ts => Asset.ts} (100%) rename src/resolver/{resolver.ts => Resolver.ts} (100%) rename src/util/{stringutils.ts => StringUtils.ts} (100%) rename src/util/java/{javautil.ts => JavaUtil.ts} (100%) 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