mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-10 08:08:16 -05:00
**Motivation** Add types support for Bun. So we can start using `if(Bun)` in our codebase. **Description** - Add `@types/bun` package **Steps to test or reproduce** - Run all tests
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2021",
|
|
"lib": ["es2021", "dom"],
|
|
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
|
|
"pretty": true,
|
|
"strict": true,
|
|
"sourceMap": true,
|
|
"alwaysStrict": true,
|
|
"strictNullChecks": true,
|
|
"strictFunctionTypes": true,
|
|
"strictBindCallApply": true,
|
|
"strictPropertyInitialization": true,
|
|
"useUnknownInCatchVariables": true,
|
|
"noImplicitAny": true,
|
|
"noImplicitThis": true,
|
|
"noImplicitReturns": 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,
|
|
|
|
"types": ["node", "bun", "vitest"],
|
|
|
|
// Required to run benchmark command from root directory
|
|
"typeRoots": [
|
|
"node_modules/@types",
|
|
"./types",
|
|
"${configDir}/node_modules/@types",
|
|
"${configDir}/types",
|
|
"../../node_modules/@types",
|
|
"../../types",
|
|
],
|
|
}
|
|
}
|