From 8a18282ce8f4b4b4078f3c4d6c20e102a2260894 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 06:19:27 +0800 Subject: [PATCH] Update dependency typescript to v6 (#18971) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker --- package.json | 2 +- .../hacks/typescript-unused-specifiers.js | 1 + tsconfig.json | 1 + yarn.lock | 18 +++++++++--------- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c22acd3a8..912f2d016 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "strip-ansi": "7.2.0", "to-fast-properties": "4.0.0", "trim-newlines": "5.0.0", - "typescript": "5.9.3", + "typescript": "6.0.2", "unicode-regex": "4.2.0", "unified": "9.2.2", "url-or-path": "2.6.1", diff --git a/scripts/build/hacks/typescript-unused-specifiers.js b/scripts/build/hacks/typescript-unused-specifiers.js index 8450026da..a2a6d6db4 100644 --- a/scripts/build/hacks/typescript-unused-specifiers.js +++ b/scripts/build/hacks/typescript-unused-specifiers.js @@ -276,6 +276,7 @@ export default new Set([ "getCommentRange", "getCommonSourceDirectory", "getCommonSourceDirectoryOfConfig", + "getComputedCommonSourceDirectory", "getConditions", "getConfigFileParsingDiagnostics", "getConstantValue", diff --git a/tsconfig.json b/tsconfig.json index 325011ab8..e342f5167 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ // TBD it is desired to enabled strict type checking at some point: "noImplicitAny": false, "strictNullChecks": false, + "types": ["node"], "typeRoots": ["./types", "./node_modules/@types"], }, diff --git a/yarn.lock b/yarn.lock index 37fba5aa6..5c8ed3c8f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8743,7 +8743,7 @@ __metadata: to-fast-properties: "npm:4.0.0" trim-newlines: "npm:5.0.0" ts-expect: "npm:1.3.0" - typescript: "npm:5.9.3" + typescript: "npm:6.0.2" unicode-regex: "npm:4.2.0" unified: "npm:9.2.2" url-or-path: "npm:2.6.1" @@ -9976,23 +9976,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.9.3": - version: 5.9.3 - resolution: "typescript@npm:5.9.3" +"typescript@npm:6.0.2": + version: 6.0.2 + resolution: "typescript@npm:6.0.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10/c089d9d3da2729fd4ac517f9b0e0485914c4b3c26f80dc0cffcb5de1719a17951e92425d55db59515c1a7ddab65808466debb864d0d56dcf43f27007d0709594 + checksum: 10/b9fc2fcee7ee8e5ca6f5138181964550531e18e2d20ecb71b802d4d495881e3444e0ef94cbb6e84eb2ba41e913f6feae3ca33cc722b32e6e6dfadb32d23b80e6 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.9.3#optional!builtin": - version: 5.9.3 - resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin::version=5.9.3&hash=5786d5" +"typescript@patch:typescript@npm%3A6.0.2#optional!builtin": + version: 6.0.2 + resolution: "typescript@patch:typescript@npm%3A6.0.2#optional!builtin::version=6.0.2&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10/696e1b017bc2635f4e0c94eb4435357701008e2f272f553d06e35b494b8ddc60aa221145e286c28ace0c89ee32827a28c2040e3a69bdc108b1a5dc8fb40b72e3 + checksum: 10/e5501dfcf8c5b6b9a61f6fa53decc40187cebe3a2b7b2bd51c615007ad4cf6d58298461fef63294f6be9d5f2f33019b2a2e2bf02d9cb7d7f6ec94372bf24ffa2 languageName: node linkType: hard