Skip to content

Fix TypeScript 6 build failure: migrate to moduleResolution: bundler#39

Merged
demccormack merged 3 commits into
mainfrom
dependabot/npm_and_yarn/typescript-6.0.3
May 22, 2026
Merged

Fix TypeScript 6 build failure: migrate to moduleResolution: bundler#39
demccormack merged 3 commits into
mainfrom
dependabot/npm_and_yarn/typescript-6.0.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 17, 2026

The CI test job failed during npm ci because TypeScript 6 deprecated moduleResolution: "Node" (node10) and now errors without migration or an ignore flag.

Changes

  • Migrated moduleResolution: "Node""bundler"

    • "bundler" is the recommended setting for modern ESM projects in TS6+
    • Provides proper module resolution for Node.js built-ins with ESNext modules
  • Added "types": ["node"] to ensure Node.js built-in APIs (process, fs, path, url) resolve correctly during compilation

Context

Before TypeScript 6, moduleResolution: "Node" (node10 algorithm) was the default. TS6 deprecates this in favor of:

  • "bundler" - for modern bundled/ESM projects
  • "node16"/"nodenext" - for strict Node.js CJS/ESM resolution

Since this project uses "type": "module" and "module": "ESNext", "bundler" is the appropriate choice.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 17, 2026
@demccormack demccormack enabled auto-merge (rebase) April 17, 2026 03:07
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.3 branch from d3b81c5 to 1b8a690 Compare April 17, 2026 03:09
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.3 branch from 1b8a690 to cbf983d Compare April 24, 2026 03:09
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.3 branch 2 times, most recently from 97b2917 to 6f34822 Compare May 8, 2026 03:10
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.3 branch from 6f34822 to ea2d3ac Compare May 15, 2026 03:11
auto-merge was automatically disabled May 22, 2026 09:29

Head branch was pushed to by a user without write access

Copilot AI requested a review from demccormack May 22, 2026 09:29
Copilot AI changed the title deps-dev(deps-dev): bump typescript from 5.9.3 to 6.0.3 Fix TypeScript 6 build failure: migrate to moduleResolution: bundler May 22, 2026
@demccormack demccormack enabled auto-merge (squash) May 22, 2026 09:41
@demccormack demccormack merged commit 3bdc385 into main May 22, 2026
2 checks passed
@demccormack demccormack deleted the dependabot/npm_and_yarn/typescript-6.0.3 branch May 22, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants