Skip to content

Commit 9e412a5

Browse files
committed
Update moduleResolution to bundler for exports field support
@actions/github@9 and @octokit/core@7 use package.json exports subpaths which require moduleResolution bundler or node16+. Using bundler with module esnext avoids ESM/CJS boundary issues since ncc bundles the output into a single file regardless.
1 parent 4bf3e8d commit 9e412a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"compilerOptions": {
33
"target": "ES2022",
44
/* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
5-
"module": "commonjs",
5+
"module": "esnext",
66
/* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
7+
"moduleResolution": "bundler",
8+
/* Specify module resolution strategy. */
79
"outDir": "./lib",
810
/* Redirect output structure to the directory. */
911
"rootDir": "./src",

0 commit comments

Comments
 (0)