Skip to content

Commit

Permalink
Makes types tsconfig use nodenext like everything else.
Browse files Browse the repository at this point in the history
Currently, the `_types` is built using `node` module resolution, which results in this project generating invalid types.  Details about the TypeScript bug can be found at microsoft/TypeScript#60930 (comment) and there are no plans to fix it since `node` (which is equivalent to `node10`) is being deprecated in TypeScript soon.

The rest of this project uses `nodenext`, so this changes the types `tsconfig` file to also use `nodenext`, and fix the bug that currently prevents the library from being used correctly in native ESM projects.
  • Loading branch information
MicahZoltu authored Jan 14, 2025
1 parent 1a235e6 commit 325ef68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"src/node/trustedSetups_esm.ts"
],
"compilerOptions": {
"moduleResolution": "node",
"moduleResolution": "nodenext",
"sourceMap": true,
"rootDir": "./src"
}
Expand Down

0 comments on commit 325ef68

Please sign in to comment.