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" } } }