@@ -61,18 +61,23 @@ jobs:
6161 - name : TypeCheck website
6262 # see https://github.com/facebook/docusaurus/pull/10486
6363 run : yarn workspace website typecheck
64+
65+ - name : TypeCheck website - max version - Latest
66+ # For latest TS there are often lib check errors, so we disable it
67+ # Details: https://github.com/facebook/docusaurus/pull/10486
68+ run : |
69+ yarn add typescript@latest --exact -D -W --ignore-scripts
70+ yarn workspace website typecheck --project tsconfig.skipLibCheck.json
71+
6472 - name : TypeCheck website - min version - v5.1
6573 run : |
6674 yarn add typescript@5.1.6 --exact -D -W --ignore-scripts
6775
76+ # Downgrade TS ignoreDeprecations option
77+ node -e 'const fs = require("fs"); const f = "website/tsconfig.json"; fs.writeFileSync(f, fs.readFileSync(f, "utf8").replace(/"ignoreDeprecations"\s*:\s*"6\.0"/, "\"ignoreDeprecations\": \"5.0\""));'
78+
6879 # DocSearch@4/ai@5 doesn't support TS 5.1 (with skipLibCheck=false)
6980 jq '.resolutions."@docsearch/react" = "^3.9.0"' package.json > package.json.tmp && mv -Force package.json.tmp package.json
7081 yarn add @docsearch/react@^3.9.0 --exact -D -W --ignore-scripts
7182
7283 yarn workspace website typecheck
73- - name : TypeCheck website - max version - Latest
74- # For latest TS there are often lib check errors, so we disable it
75- # Details: https://github.com/facebook/docusaurus/pull/10486
76- run : |
77- yarn add typescript@latest --exact -D -W --ignore-scripts
78- yarn workspace website typecheck --project tsconfig.skipLibCheck.json
0 commit comments