Skip to content

chore(tsconfig): migrate deprecated TypeScript module resolution - #103

Merged
luojiyin1987 merged 1 commit into
masterfrom
chore/tsconfig-bundler-resolution
Aug 15, 2026
Merged

chore(tsconfig): migrate deprecated TypeScript module resolution#103
luojiyin1987 merged 1 commit into
masterfrom
chore/tsconfig-bundler-resolution

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

What changed

  • Upgrade TypeScript from 5.9.3 to 6.0.3.
  • Remove the deprecated baseUrl option.
  • Change moduleResolution from Node to Bundler.
  • Add one explicit GFM test callback type for TypeScript 6.

Why

TypeScript 6 deprecates baseUrl and the legacy Node resolution mode.

This project uses esbuild for its CommonJS and ESM runtime bundles.

Bundler resolution now supports CommonJS module output in TypeScript 6.

Impact

Runtime output and the public API do not change.

API Extractor reports its bundled TypeScript 5.9 engine as older.

Declaration generation succeeds, and the API report remains unchanged.

Validation

  • pnpm run lint
  • pnpm run build
  • pnpm test
  • pnpm exec tsc --noEmit

All 1,961 tests pass.

Upgrade TypeScript to 6.0.3 and use bundler module resolution.

Remove baseUrl and add the TS6 test annotation.
@luojiyin1987
luojiyin1987 marked this pull request as ready for review August 15, 2026 04:14
@luojiyin1987
luojiyin1987 merged commit cac65df into master Aug 15, 2026
13 checks passed
@luojiyin1987
luojiyin1987 deleted the chore/tsconfig-bundler-resolution branch August 15, 2026 04:17
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.

1 participant