From 5861ee6af8f21cd35ebeb858bd44b2b5f92de687 Mon Sep 17 00:00:00 2001 From: idanlodzki Date: Sun, 2 Aug 2026 19:14:33 +0300 Subject: [PATCH] chore(deps): bump typescript to 6.0.3 Dependabot has been proposing TypeScript 7 (#113). That PR looks green because the Docusaurus build never runs tsc, but `npm run typecheck` fails on it: TS 7 removes baseUrl, which this tsconfig sets. TypeScript 6 is the supported step off 5.x, so take that instead. TS 6 deprecates baseUrl rather than removing it, and the deprecation can't be resolved here: @docusaurus/tsconfig sets baseUrl upstream, so the warning fires on the inherited option even after dropping ours. Added ignoreDeprecations: "6.0" with a note explaining that TS 7 is blocked on Docusaurus, not on this repo. Worth noting the @site/* alias that baseUrl exists to anchor is not used anywhere in the project, so this is inherited config we carry rather than something we depend on. Verified: typecheck and build both pass. Co-Authored-By: Claude Opus 5 (1M context) --- opsimate-docs/package.json | 2 +- opsimate-docs/tsconfig.json | 11 ++++++++++- package-lock.json | 10 +++++----- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/opsimate-docs/package.json b/opsimate-docs/package.json index 92952d1..2898a04 100644 --- a/opsimate-docs/package.json +++ b/opsimate-docs/package.json @@ -31,7 +31,7 @@ "@docusaurus/module-type-aliases": "^3.9.2", "@docusaurus/tsconfig": "^3.10.2", "@docusaurus/types": "^3.9.2", - "typescript": "~5.6.2" + "typescript": "^6.0.3" }, "browserslist": { "production": [ diff --git a/opsimate-docs/tsconfig.json b/opsimate-docs/tsconfig.json index 920d7a6..3b393db 100644 --- a/opsimate-docs/tsconfig.json +++ b/opsimate-docs/tsconfig.json @@ -2,7 +2,16 @@ // This file is not used in compilation. It is here just for a nice editor experience. "extends": "@docusaurus/tsconfig", "compilerOptions": { - "baseUrl": "." + // Re-anchors @docusaurus/tsconfig's @site/* alias to this directory; an + // inherited baseUrl would otherwise resolve against the package's own + // location inside node_modules. + "baseUrl": ".", + // TypeScript 6 deprecates baseUrl and 7 removes it, but @docusaurus/tsconfig + // sets it upstream too, so we cannot drop it unilaterally -- the deprecation + // fires on the inherited option even if we remove ours. Remove this escape + // hatch (and the baseUrl above) once Docusaurus ships a baseUrl-free + // tsconfig; until then TS 7 is blocked on them, not on us. + "ignoreDeprecations": "6.0" }, "exclude": [".docusaurus", "build"] } diff --git a/package-lock.json b/package-lock.json index 56577d5..6c5b0f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16752,9 +16752,9 @@ } }, "node_modules/typescript": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", - "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", "devOptional": true, "license": "Apache-2.0", "bin": { @@ -17860,10 +17860,10 @@ "@docusaurus/module-type-aliases": "^3.9.2", "@docusaurus/tsconfig": "^3.10.2", "@docusaurus/types": "^3.9.2", - "typescript": "~5.6.2" + "typescript": "^6.0.3" }, "engines": { - "node": ">=18.0" + "node": ">=20.0" } } }