Skip to content

Commit bb56eeb

Browse files
jeffwidmantruggeri
andauthored
Switch tsconfig module resolution to bundler (#682)
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. Co-authored-by: Thomas Ruggeri <truggeri@github.com>
1 parent 3632e3d commit bb56eeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "es2024",
4-
"module": "commonjs",
5-
"moduleResolution": "node",
4+
"module": "es2022",
5+
"moduleResolution": "bundler",
66
"rootDir": "./src",
77
"strict": true,
88
"noImplicitAny": false,

0 commit comments

Comments
 (0)