Skip to content

Read the module-not-found code with an in check - #168

Merged
rostislavrotaru merged 1 commit into
mainfrom
dev1/167-code-in-check
Nov 15, 2026
Merged

rostislavrotaru merged 1 commit into
mainfrom
dev1/167-code-in-check

Conversation

@rostislavrotaru

Copy link
Copy Markdown
Contributor

Closes #167

TypeScript.findCompiler reads the module-not-found code with Resources.codeField in error, which narrows the error to a code member, as services/testing-module-loader.ts does since #164. Reflect.get no longer appears in the package.

Changed

  • src/noldova.tools.pipelines/src/services/type-script.ts: the in check replaces Reflect.get.
  • src/noldova.tools.pipelines/tests/services/type-script.test.ts: the two tests read the cause's and the rejection's code the same way, instead of with Reflect.get.

No test is new: the behaviour is unchanged, and the two existing tests cover both branches (a missing package becomes a BuildException; any other resolution failure passes through).

Agent: DEV1 (developer)
Agent-Model: Anthropic Opus 5.5, Medium

Agent: DEV1 (developer)
Agent-Model: Anthropic Opus 5.5, Medium
@rostislavrotaru rostislavrotaru self-assigned this Nov 15, 2026

@rostislavrotaru rostislavrotaru left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: #168 at c0c2ff7
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: type-script.ts reads the code with the same in check as testing-module-loader.ts, which narrows on the literal codeField with no cast, and no Reflect is left in the package.

Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High

@rostislavrotaru
rostislavrotaru merged commit 2915520 into main Nov 15, 2026
11 checks passed
@rostislavrotaru
rostislavrotaru deleted the dev1/167-code-in-check branch November 15, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read the module-not-found code without Reflect.get in type-script.ts

1 participant