Skip to content

Commit

Permalink
fix!: change module from ES2022 to Node16 in TSConfig
Browse files Browse the repository at this point in the history
This prevents the following error and shouldn't be a difference for most projects. As it could be breaking for some projects, it's released as a breaking change.

tsconfig.json(4,15): error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
  • Loading branch information
jdbruijn committed Nov 5, 2023
1 parent c3716c2 commit c395506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"declaration": true,
"module": "ES2022",
"module": "Node16",

Check failure on line 4 in tsconfig.json

View workflow job for this annotation

GitHub Actions / release / Release

Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
"esModuleInterop": true,
"moduleResolution": "Node16",
"outDir": "dist",
Expand Down

0 comments on commit c395506

Please sign in to comment.