Files
lodestar/tsconfig.build.json
Nazar Hussain 0c6f50771f chore: use latest TS module resolution (#8419)
**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>
2025-09-18 11:36:48 -04:00

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",
],
}
}