TS 5.7 added support for ES2024. By keeping target: “esnext”, we would have accidentally set our minimum supported ES version to ES2024. This sets it to ES2022, which is the version supported by Node 18
20 lines
544 B
JSON
20 lines
544 B
JSON
{
|
|
"extends": "../../tsconfig.json",
|
|
"compilerOptions": {
|
|
"composite": true, // Make sure typescript knows that this module depends on their references
|
|
"esModuleInterop": true,
|
|
"resolveJsonModule": true,
|
|
"allowJs": true,
|
|
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
"rootDir": "./src",
|
|
"lib": [
|
|
"DOM",
|
|
"DOM.Iterable",
|
|
"ES2022"
|
|
],
|
|
"noEmit": false /* Do not emit outputs. */,
|
|
"emitDeclarationOnly": false
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.js"]
|
|
}
|