Skip to content

fix(dts-generator): align module option with moduleResolution for TS6#581

Merged
akudev merged 1 commit into
mainfrom
fix/TS6
May 26, 2026
Merged

fix(dts-generator): align module option with moduleResolution for TS6#581
akudev merged 1 commit into
mainfrom
fix/TS6

Conversation

@akudev
Copy link
Copy Markdown
Member

@akudev akudev commented May 26, 2026

TypeScript 6 requires module to be set to Node16 when moduleResolution is Node16. The previous ES2015 value was valid in TS5 but now causes a config diagnostic that cascades into spurious type errors (JQuery namespace, QUnit.Assert) during the check-compile phase.

TypeScript 6 requires module to be set to Node16 when moduleResolution
is Node16. The previous ES2015 value was valid in TS5 but now causes a
config diagnostic that cascades into spurious type errors (JQuery
namespace, QUnit.Assert) during the check-compile phase.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the dts-generator’s check-compile configuration to satisfy TypeScript 6’s requirement that compilerOptions.module is compatible with moduleResolution: Node16, preventing config diagnostics that previously cascaded into unrelated type errors during the check phase.

Changes:

  • Set tsOptions.module to ModuleKind.Node16 when moduleResolution is Node16 in the run-check CLI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akudev akudev merged commit 1c3293e into main May 26, 2026
7 checks passed
@akudev akudev deleted the fix/TS6 branch May 26, 2026 16:11
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.

2 participants