From ad3245ded1d590a65f55d55f456ea734747713fd Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sat, 22 Aug 2026 13:33:53 +0800 Subject: [PATCH 1/2] chore: upgrade TypeScript to 6.0 --- package.json | 2 +- tsconfig.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 49b3cfd..715740a 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "prettier": "^2.7.1", "ts-jest": "^29.4.0", "tsx": "^4.22.4", - "typescript": "^5.9.0" + "typescript": "^6.0.3" }, "overrides": { "js-yaml": "^3.15.0" diff --git a/tsconfig.json b/tsconfig.json index a4f3187..168172b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,6 +7,14 @@ "resolveJsonModule": true, "esModuleInterop": true, "isolatedModules": true, + // TS 6 no longer infers rootDir (aka.ms/ts6, error TS5011). The JSON + // import of ../package.json makes the effective root the project + // directory, which preserves the lib/src/** emit layout. + "rootDir": "./", + // TS 6 flips the effective noImplicitAny default to true. Pinned to keep + // the upgrade diff behavior-preserving; see format-lint-report.ts for the + // known implicit-any sites awaiting cleanup. + "noImplicitAny": false, "types": [ "jest", "node" From be13c8473c0c22640e9a9f8098dea54b38262d08 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sat, 22 Aug 2026 13:40:54 +0800 Subject: [PATCH 2/2] chore(test): require ts-jest 29.4.7 for TypeScript 6 support --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 715740a..b5f1349 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "@types/node": "^22.9.3", "jest": "^30.0.0", "prettier": "^2.7.1", - "ts-jest": "^29.4.0", + "ts-jest": "^29.4.7", "tsx": "^4.22.4", "typescript": "^6.0.3" },