Skip to content

bug(tooling-core): createTransformProcessor check-mode detection never fires for plain RunConfig callers #2

Description

@datalackey

Summary

createTransformProcessor detects check mode via config.check === true (an optional boolean on a locally-extended type), not via config.runMode === "check" (the framework standard).

A caller passing a plain RunConfig — which has runMode but no check field — will never trigger check mode through this helper. The file will be written even when the runner is in "check" mode.

Affected file

  • javascript/tooling-core/src/repository/createTransformProcessor.ts:6,18

Correct pattern (used everywhere else)

if (config.runMode === "check") { ... }

See RepositoryRunner.ts:87 for the canonical usage.

Fix

Replace config.check === true with config.runMode === "check" in createTransformProcessor.ts. Remove the check?: boolean extension from the TConfig constraint if it is no longer needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions