Member Junction
    Preparing search index...

    Phase H — Runs MJ CodeGen, verifies artifacts, and applies post-codegen fixups.

    This is the most complex phase in the install pipeline. After code generation succeeds, it runs a 4-step post-codegen pipeline to ensure class registration manifests are current and known source-level issues are patched.

    const codeGen = new CodeGenPhase();
    const result = await codeGen.Run({
    Dir: '/path/to/install',
    Emitter: emitter,
    Fast: false,
    });
    if (result.RetryUsed) {
    console.log('CodeGen needed a rebuild + retry');
    }
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Execute the codegen phase: run mj codegen, verify artifacts, retry if needed, then run the post-codegen pipeline (manifest regen + known-issue patches).

      Parameters

      • context: CodeGenContext

        Codegen input with directory, emitter, and fast-mode flag.

      Returns Promise<CodeGenResult>

      Codegen result with success status, artifact verification, and retry flag.

      With code CODEGEN_TIMEOUT if codegen exceeds 15 minutes.

      With code CODEGEN_FAILED if codegen fails after rebuild + retry.