Skip to content

Commit b2ebe49

Browse files
authored
deps: upgrade tyepscript to 5.7 (#7160)
**Motivation** Keep the deps updated. **Description** Use latest features provided by Typescript. See the comments below. **Steps to test or reproduce** - Run all tests
1 parent d1f9f7b commit b2ebe49

34 files changed

+93
-45
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"stream-http": "^3.2.0",
7171
"supertest": "^6.3.3",
7272
"ts-node": "^10.9.2",
73-
"typescript": "^5.4.2",
73+
"typescript": "^5.7.3",
7474
"typescript-docs-verifier": "^2.5.3",
7575
"vite": "^5.3.4",
7676
"vite-plugin-dts": "^3.9.1",

packages/api/tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"include": ["src"],
44
"compilerOptions": {
55
"outDir": "lib"
6-
}
6+
}
77
}

packages/api/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {}
3+
"include": ["src"],
4+
"compilerOptions": {
5+
"outDir": "lib"
6+
}
47
}

packages/beacon-node/src/eth1/eth1DepositDataTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export class Eth1DepositDataTracker {
227227

228228
// If remoteFollowBlock is not at or beyond deployBlock, there is no need to
229229
// fetch and track any deposit data yet
230-
if (remoteFollowBlock < this.eth1Provider.deployBlock ?? 0) return true;
230+
if (remoteFollowBlock < (this.eth1Provider.deployBlock ?? 0)) return true;
231231

232232
const hasCaughtUpDeposits = await this.updateDepositCache(remoteFollowBlock);
233233
const hasCaughtUpBlocks = await this.updateBlockCache(remoteFollowBlock);

packages/beacon-node/tsconfig.build.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../../tsconfig.build.json",
33
"include": ["src"],
44
"compilerOptions": {
5-
"outDir": "lib",
6-
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
5+
"outDir": "lib"
76
}
87
}

packages/beacon-node/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"exclude": ["../../node_modules/it-pipe"],
4+
"include": ["src"],
45
"compilerOptions": {
5-
"typeRoots": ["../../node_modules/@types", "../../types"]
6+
"outDir": "lib"
67
}
78
}

packages/cli/tsconfig.build.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": "../../tsconfig.build.json",
33
"include": ["src"],
44
"compilerOptions": {
5-
"outDir": "lib",
6-
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
5+
"outDir": "lib"
76
}
87
}

packages/cli/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3+
"include": ["src"],
34
"compilerOptions": {
4-
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "../../types"]
5+
"outDir": "lib"
56
}
67
}

packages/config/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {}
3+
"include": ["src"],
4+
"compilerOptions": {
5+
"outDir": "lib"
6+
}
47
}

packages/db/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"compilerOptions": {}
3+
"include": ["src"],
4+
"compilerOptions": {
5+
"outDir": "lib"
6+
}
47
}

0 commit comments

Comments
 (0)