diff --git a/src/publishing/curseforge-publisher.ts b/src/publishing/curseforge/curseforge-publisher.ts similarity index 81% rename from src/publishing/curseforge-publisher.ts rename to src/publishing/curseforge/curseforge-publisher.ts index a061b87..85d5bbc 100644 --- a/src/publishing/curseforge-publisher.ts +++ b/src/publishing/curseforge/curseforge-publisher.ts @@ -1,7 +1,7 @@ -import { File } from "../utils/file-utils"; -import ModPublisher from "./mod-publisher"; -import PublisherTarget from "./publisher-target"; -import { convertToCurseForgeVersions, uploadFile } from "../utils/curseforge-utils"; +import { File } from "../../utils/file-utils"; +import ModPublisher from "../mod-publisher"; +import PublisherTarget from "../publisher-target"; +import { convertToCurseForgeVersions, uploadFile } from "../../utils/curseforge-utils"; export default class CurseForgePublisher extends ModPublisher { public get target(): PublisherTarget { diff --git a/src/publishing/github-publisher.ts b/src/publishing/github/github-publisher.ts similarity index 92% rename from src/publishing/github-publisher.ts rename to src/publishing/github/github-publisher.ts index 062b212..18add7c 100644 --- a/src/publishing/github-publisher.ts +++ b/src/publishing/github/github-publisher.ts @@ -1,7 +1,7 @@ -import Publisher from "./publisher"; -import PublisherTarget from "./publisher-target"; +import Publisher from "../publisher"; +import PublisherTarget from "../publisher-target"; import * as github from "@actions/github"; -import { File } from "../utils/file-utils"; +import { File } from "../../utils/file-utils"; interface GitHubPublisherOptions { tag?: string; diff --git a/src/publishing/modrinth-publisher.ts b/src/publishing/modrinth/modrinth-publisher.ts similarity index 77% rename from src/publishing/modrinth-publisher.ts rename to src/publishing/modrinth/modrinth-publisher.ts index 4bfd52a..9f0be7c 100644 --- a/src/publishing/modrinth-publisher.ts +++ b/src/publishing/modrinth/modrinth-publisher.ts @@ -1,7 +1,7 @@ -import { createVersion } from "../utils/modrinth-utils"; -import { File } from "../utils/file-utils"; -import ModPublisher from "./mod-publisher"; -import PublisherTarget from "./publisher-target"; +import { createVersion } from "../../utils/modrinth-utils"; +import { File } from "../../utils/file-utils"; +import ModPublisher from "../mod-publisher"; +import PublisherTarget from "../publisher-target"; export default class ModrinthPublisher extends ModPublisher { public get target(): PublisherTarget { diff --git a/src/publishing/publisher-factory.ts b/src/publishing/publisher-factory.ts index 3637adb..dea946e 100644 --- a/src/publishing/publisher-factory.ts +++ b/src/publishing/publisher-factory.ts @@ -1,8 +1,8 @@ import Publisher from "./publisher"; import PublisherTarget from "./publisher-target"; -import GitHubPublisher from "./github-publisher"; -import ModrinthPublisher from "./modrinth-publisher"; -import CurseForgePublisher from "./curseforge-publisher"; +import GitHubPublisher from "./github/github-publisher"; +import ModrinthPublisher from "./modrinth/modrinth-publisher"; +import CurseForgePublisher from "./curseforge/curseforge-publisher"; import Logger from "../utils/logger"; export default class PublisherFactory {