diff --git a/packages/cli/generation/ir-migrations/src/migrations/ir-v1/migrateFromV2ToV1.ts b/packages/cli/generation/ir-migrations/src/migrations/ir-v1/migrateFromV2ToV1.ts index 40472de1bfb..93af6676cd0 100644 --- a/packages/cli/generation/ir-migrations/src/migrations/ir-v1/migrateFromV2ToV1.ts +++ b/packages/cli/generation/ir-migrations/src/migrations/ir-v1/migrateFromV2ToV1.ts @@ -1,15 +1,17 @@ import * as V2 from "@fern-fern/ir-model"; import * as V1 from "@fern-fern/ir-v1-model"; +import { GeneratorName } from "../../types/GeneratorName"; import { AlwaysRunMigration, IrMigration } from "../../types/IrMigration"; export const V2_TO_V1_MIGRATION: IrMigration = { requiredForGeneratorVersions: { - "fernapi/fern-typescript": AlwaysRunMigration, - "fernapi/fern-typescript-sdk": "0.0.245", - "fernapi/fern-python": AlwaysRunMigration, - "fernapi/fern-java": AlwaysRunMigration, - "fernapi/fern-openapi": AlwaysRunMigration, - "fernapi/fern-postman": AlwaysRunMigration, + [GeneratorName.TYPESCRIPT]: AlwaysRunMigration, + [GeneratorName.TYPESCRIPT_SDK]: "0.0.245", + [GeneratorName.JAVA]: AlwaysRunMigration, + [GeneratorName.JAVA_SDK]: AlwaysRunMigration, + [GeneratorName.PYTHON]: AlwaysRunMigration, + [GeneratorName.OPENAPI]: AlwaysRunMigration, + [GeneratorName.POSTMAN]: AlwaysRunMigration, }, migrateBackwards: (v2) => { return { diff --git a/packages/cli/generation/ir-migrations/src/types/GeneratorName.ts b/packages/cli/generation/ir-migrations/src/types/GeneratorName.ts index 40fe6ea81ae..2cee8015b10 100644 --- a/packages/cli/generation/ir-migrations/src/types/GeneratorName.ts +++ b/packages/cli/generation/ir-migrations/src/types/GeneratorName.ts @@ -2,6 +2,7 @@ export const GeneratorName = { TYPESCRIPT: "fernapi/fern-typescript", TYPESCRIPT_SDK: "fernapi/fern-typescript-sdk", JAVA: "fernapi/fern-java", + JAVA_SDK: "fernapi/fern-java-sdk", PYTHON: "fernapi/fern-python", OPENAPI: "fernapi/fern-openapi", POSTMAN: "fernapi/fern-postman",