Skip to content

chore(dts-generator)!: update TypeScript to 6.0.3 across repo#571

Merged
akudev merged 3 commits into
mainfrom
chore/ts6
May 11, 2026
Merged

chore(dts-generator)!: update TypeScript to 6.0.3 across repo#571
akudev merged 3 commits into
mainfrom
chore/ts6

Conversation

@akudev
Copy link
Copy Markdown
Member

@akudev akudev commented May 11, 2026

In general not affecting consumers, they can remain on TS 5.x. But:

BREAKING CHANGE: The re-exported ModuleResolutionKind enum no longer includes the deprecated NodeJs value. Consumers using ModuleResolutionKind.NodeJs must switch to Node16. The runCheck CLI now uses Node16 module resolution instead of Node10, which enforces file extensions and respects package.json exports.

Adapt all tsconfigs for TS6 changed defaults:

  • explicit types arrays (TS6 defaults to [])
  • explicit rootDir (TS6 requires it with outDir)
  • explicit strict: false where previously relying on default
  • moduleResolution: "node" → "bundler" in test-packages
  • dedicated tsconfig for API type-check test (TS6 errors on tsc + files
  • tsconfig)

In general not affecting consumers, they can remain on TS 5.x. But:

BREAKING CHANGE: The re-exported ModuleResolutionKind enum no longer
includes the deprecated NodeJs value. Consumers using
ModuleResolutionKind.NodeJs must switch to Node16.
The runCheck CLI now uses Node16 module resolution instead of Node10,
which enforces file extensions and respects package.json exports.

Adapt all tsconfigs for TS6 changed defaults:
- explicit types arrays (TS6 defaults to [])
- explicit rootDir (TS6 requires it with outDir)
- explicit strict: false where previously relying on default
- moduleResolution: "node" → "bundler" in test-packages
- dedicated tsconfig for API type-check test (TS6 errors on tsc + files
+ tsconfig)
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 monorepo toolchain to TypeScript 6.0.3 and adjusts various configs/tests to accommodate TS6 default/behavior changes (notably module resolution and explicit compiler options), including a breaking change around ModuleResolutionKind.NodeJs removal from the re-exported enum.

Changes:

  • Bump TypeScript to 6.0.3 in root and relevant workspace packages, plus lockfile updates.
  • Update test package tsconfig.json files (e.g. moduleResolution: "bundler", explicit types, rootDir, strict/skipLibCheck).
  • Adjust @ui5/dts-generator checks/tests to use ModuleResolutionKind.Node16 and add a dedicated tsconfig for API type-checking.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
yarn.lock Updates TypeScript resolution to 6.0.3 in the lockfile (while still retaining a 5.9.3 entry due to downstream constraints).
package.json Bumps root devDependency TypeScript to 6.0.3.
test-packages/typed-json-model/tsconfig.json Switches module resolution to bundler and removes redundant baseUrl/paths entries.
test-packages/typed-json-model/package.json Bumps local TypeScript devDependency to 6.0.3.
test-packages/openui5-snapshot-test/tsconfig.json Sets moduleResolution to bundler for TS6 behavior alignment.
test-packages/openui5-snapshot-test/package.json Bumps local TypeScript dependency to 6.0.3.
packages/ts-interface-generator/tsconfig-testwebcomponent.json Adds explicit types: ["openui5"] to stabilize TS6 default type inclusion.
packages/ts-interface-generator/tsconfig-testmanagedobject.json Adds explicit types: ["openui5"] to stabilize TS6 default type inclusion.
packages/ts-interface-generator/tsconfig-testcontrol.json Adds explicit types: ["openui5"] to stabilize TS6 default type inclusion.
packages/ts-interface-generator/src/test/testcases/tsconfig-path-relative/tsconfig.json Adds explicit types: ["openui5"] in testcase config.
packages/ts-interface-generator/src/test/testcases/testcaseRunner.test.ts Extends the in-test CompilerOptions with types: ["openui5"].
packages/ts-interface-generator/package.json Bumps local TypeScript devDependency to 6.0.3.
packages/dts-generator/tsconfig.json Adds explicit types, rootDir, strict, skipLibCheck for TS6 compatibility and clearer build configuration.
packages/dts-generator/tsconfig-test-apis.json New dedicated project config used by test:apis to type-check specific .d.ts files under TS6.
packages/dts-generator/src/runCheck.ts Switches compile-check module resolution from deprecated NodeJs to Node16.
packages/dts-generator/src/checkCompile/check-compile.ts Updates documentation comment to reference ModuleResolutionKind.Node16.
packages/dts-generator/package.json Bumps TypeScript to 6.0.3 and updates test:apis to use the dedicated tsconfig.

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

Comment thread packages/dts-generator/tsconfig.json
Ensures the build works outside hoisted monorepo setups now that
tsconfig.json explicitly lists "types": ["node"].
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

Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.

Comment thread packages/dts-generator/tsconfig-test-apis.json Outdated
@akudev akudev merged commit 7b656a3 into main May 11, 2026
6 checks passed
@akudev akudev deleted the chore/ts6 branch May 11, 2026 15:38
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