Switch tsconfig module resolution to bundler by jeffwidman · Pull Request #682 · dependabot/fetch-metadata (original) (raw)

@jeffwidman marked this pull request as ready for review

March 26, 2026 05:07

jeffwidman

jeffwidman

@jeffwidman

Changes module from "commonjs" to "es2022" and moduleResolution from "node" to "bundler". This tells TypeScript to resolve imports the way esbuild does, including support for package.json "exports" maps used by newer @actions/* and @octokit/* packages.

Since esbuild handles the actual CJS output (--format=cjs), these settings only affect type-checking — the runtime behavior is unchanged.

@truggeri

truggeri

@truggeri truggeri deleted the tsconfig-module-resolution-bundler branch

March 26, 2026 18:28

This was referenced

May 15, 2026

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})