Skip to content

fix(tsconfig): make tsconfig files compatible with TypeScript 6.0#1178

Open
314systems wants to merge 3 commits intoopennextjs:mainfrom
314systems:ts6
Open

fix(tsconfig): make tsconfig files compatible with TypeScript 6.0#1178
314systems wants to merge 3 commits intoopennextjs:mainfrom
314systems:ts6

Conversation

@314systems
Copy link
Copy Markdown
Contributor

@314systems 314systems commented Apr 6, 2026

This PR is a TypeScript 6.0 compatibility migration for tsconfig files across examples and cloudflare, addressing TS6 deprecations and default-behavior changes (e.g. config resolution and compiler defaults).

See: microsoft/TypeScript#62508

TypeScript configuration updates:

General improvements for examples:

  • Changed the moduleResolution option from "node" to "bundler" in several example tsconfig.json files to better support modern bundlers and tooling. [1] [2] [3] [4] [5]
  • Updated the target from "es5" to "esnext" in applicable example projects, ensuring the code is compiled to the latest ECMAScript standard for improved performance and compatibility. [1] [2]

Project-specific changes:

  • In examples/next-partial-prerendering/tsconfig.json, removed the baseUrl option, likely to simplify or resolve path configuration issues.

Cloudflare package configuration:

  • Changed the module to "NodeNext" and moduleResolution to "nodenext" for better compatibility with Node.js-style module resolution in packages/cloudflare/tsconfig.json.
  • Added the rootDir option set to ./src to clarify the source directory for the TypeScript compiler.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 6, 2026

🦋 Changeset detected

Latest commit: b4f0df7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vicb
Copy link
Copy Markdown
Contributor

vicb commented Apr 8, 2026

The PR title says "fix(tsconfig)" but I am not sure to understand what the fix is by reading the PR description. Is something actually broken or is this PR more to improve the DX (which is great too).

Could you please add a changeset (by running pnpm changeset)

@314systems
Copy link
Copy Markdown
Contributor Author

This PR is a proactive TypeScript 6.0 compatibility update.
The project is not using TypeScript 6.0 yet, but this avoids deprecation/build issues during a future upgrade.

Screenshot 2026-04-09 080023

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