From 7f6945e30be5d7610a2ab64e9d7147be0cbeaf20 Mon Sep 17 00:00:00 2001 From: Damien Retzinger Date: Tue, 9 Jun 2026 17:28:40 -0400 Subject: [PATCH] fix(tsconfig): set ES2022 target for jest typechecking resolve-check-config and setup-install set `types: ["jest"]`, which excludes @types/node and the lib references it pulls in. With no explicit `target`, ts-jest typechecks against the default ES5 lib, so modern globals like `Object.entries` fail to resolve (TS2550) and the resolve-check-config suite fails to compile. --- resolve-check-config/tsconfig.json | 3 ++- setup-install/tsconfig.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resolve-check-config/tsconfig.json b/resolve-check-config/tsconfig.json index 8af68dd..a9c61ab 100644 --- a/resolve-check-config/tsconfig.json +++ b/resolve-check-config/tsconfig.json @@ -3,6 +3,7 @@ "resolveJsonModule": true, "esModuleInterop": true, "typeRoots": ["../node_modules/@types"], - "types": ["jest"] + "types": ["jest"], + "target": "ES2022" } } diff --git a/setup-install/tsconfig.json b/setup-install/tsconfig.json index 723cf3d..a9c61ab 100644 --- a/setup-install/tsconfig.json +++ b/setup-install/tsconfig.json @@ -3,6 +3,7 @@ "resolveJsonModule": true, "esModuleInterop": true, "typeRoots": ["../node_modules/@types"], - "types": ["jest"] + "types": ["jest"], + "target": "ES2022" } -} \ No newline at end of file +}