mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-08 23:28:10 -05:00
**Motivation** Use latest `module` and `moduleResolution` for TS. **Description** - To use [subpath imports](https://nodejs.org/api/packages.html#subpath-imports) in the PR #8320 we need to update the module solution strategy for TS. - That requires to change the `module` for the TS as well. - Earlier tried to stay with `node18` or `node20`, but the `ts-node` does not work with that. - Maintaining different tsconfig for ts-node is more of hassle on wrong run. - So decided to stick with `nodenext` strategy for `moduleResolution` **Steps to test or reproduce** Run all tests --------- Co-authored-by: Cayman <caymannava@gmail.com>
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2022",
|
|
"lib": ["es2022", "dom"],
|
|
|
|
"module": "nodenext",
|
|
"moduleResolution": "nodenext",
|
|
|
|
"pretty": true,
|
|
"strict": true,
|
|
"sourceMap": true,
|
|
"alwaysStrict": true,
|
|
"strictNullChecks": true,
|
|
"strictFunctionTypes": true,
|
|
"strictBindCallApply": true,
|
|
"strictPropertyInitialization": true,
|
|
"useUnknownInCatchVariables": true,
|
|
"noImplicitAny": true,
|
|
"noImplicitThis": true,
|
|
"noImplicitReturns": true,
|
|
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"incremental": true,
|
|
"preserveWatchOutput": true,
|
|
"noUncheckedSideEffectImports": true,
|
|
// TODO: Investigate following errors:
|
|
// - Cannot find module 'rollup/parseAst' or its corresponding type declarations
|
|
"skipLibCheck": true,
|
|
|
|
// Required to run benchmark command from root directory
|
|
"typeRoots": [
|
|
"node_modules/@types",
|
|
"./types",
|
|
"${configDir}/node_modules/@types",
|
|
"${configDir}/types",
|
|
"../../node_modules/@types",
|
|
"../../types",
|
|
],
|
|
}
|
|
}
|