-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to TS 5.6 + temporarily use skipLibCheck for TS 5.6 (#…
- Loading branch information
Showing
8 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,12 +55,16 @@ jobs: | |
run: yarn build:website:fast | ||
|
||
- name: TypeCheck website | ||
run: yarn workspace website typecheck | ||
# TODO temporary, remove TS skipLibCheck | ||
# see https://github.com/facebook/docusaurus/pull/10486 | ||
run: yarn workspace website typecheck --project tsconfig.skipLibCheck.json | ||
- name: TypeCheck website - min version - v5.1 | ||
run: | | ||
yarn add [email protected] --exact -D -W --ignore-scripts | ||
yarn workspace website typecheck | ||
- name: TypeCheck website - max version - Latest | ||
# For latest TS there are often lib check errors, so we disable it | ||
# Details: https://github.com/facebook/docusaurus/pull/10486 | ||
run: | | ||
yarn add typescript@latest --exact -D -W --ignore-scripts | ||
yarn workspace website typecheck | ||
yarn workspace website typecheck --project tsconfig.skipLibCheck.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,12 +48,16 @@ jobs: | |
run: yarn workspace website test:css-order | ||
|
||
- name: TypeCheck website | ||
run: yarn workspace website typecheck | ||
# TODO temporary, remove TS skipLibCheck | ||
# see https://github.com/facebook/docusaurus/pull/10486 | ||
run: yarn workspace website typecheck --project tsconfig.skipLibCheck.json | ||
- name: TypeCheck website - min version - v5.1 | ||
run: | | ||
yarn add [email protected] --exact -D -W --ignore-scripts | ||
yarn workspace website typecheck | ||
- name: TypeCheck website - max version - Latest | ||
# For latest TS there are often lib check errors, so we disable it | ||
# Details: https://github.com/facebook/docusaurus/pull/10486 | ||
run: | | ||
yarn add typescript@latest --exact -D -W --ignore-scripts | ||
yarn workspace website typecheck | ||
yarn workspace website typecheck --project tsconfig.skipLibCheck.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,6 @@ function createFileLoaderUtils({ | |
], | ||
}, | ||
titleProp: true, | ||
ref: ![path], | ||
}, | ||
}, | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
// There is no --skipLibCheck CLI option, so we have to create a config file | ||
// Some CI workflows will run the following command: | ||
// yarn workspace website typecheck --project tsconfig.skipLibCheck.json | ||
// See https://github.com/facebook/docusaurus/pull/10486 | ||
"skipLibCheck": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters