Skip to content

Commit d33004d

Browse files
authored
chore: upgrade monorepo to TS 5.8 (#10966)
* Upgrade to TS 5.8 * increase build perf CI timeout values * enable erasableSyntaxOnly * enable erasableSyntaxOnly
1 parent dec3bcb commit d33004d

File tree

24 files changed

+30
-72
lines changed

24 files changed

+30
-72
lines changed

.github/workflows/build-perf.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,15 @@ jobs:
8585
# Ensure build with a cold cache does not increase too much
8686
- name: Build (cold cache)
8787
run: yarn build:website:fast
88-
timeout-minutes: ${{ matrix.DOCUSAURUS_INFRA == 'SLOWER' && 3 || 1 }}
88+
timeout-minutes: ${{ matrix.DOCUSAURUS_INFRA == 'SLOWER' && 3 || 2 }}
8989
env:
9090
DOCUSAURUS_SLOWER: ${{ matrix.DOCUSAURUS_INFRA == 'SLOWER' && 'true' || 'false' }}
9191

9292
# Ensure build with a warm cache does not increase too much
9393
- name: Build (warm cache)
9494
run: yarn build:website:fast
95-
timeout-minutes: 1
95+
# Temporary: upper value for Rspack until incremental cache works better
96+
timeout-minutes: ${{ matrix.DOCUSAURUS_INFRA == 'SLOWER' && 1 || 2 }}
9697
env:
9798
DOCUSAURUS_SLOWER: ${{ matrix.DOCUSAURUS_INFRA == 'SLOWER' && 'true' || 'false' }}
9899

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"stylelint": "^14.16.1",
124124
"stylelint-config-prettier": "^9.0.5",
125125
"stylelint-config-standard": "^29.0.0",
126-
"typescript": "~5.7.2"
126+
"typescript": "~5.8.2"
127127
},
128128
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
129129
}

packages/docusaurus-cssnano-preset/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ const preset: typeof advancedBasePreset = function preset(opts) {
2626
return advancedPreset;
2727
};
2828

29+
// @ts-expect-error: TODO fix later
2930
export = preset;

packages/docusaurus-mdx-loader/src/processor.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import type {WebpackCompilerName} from '@docusaurus/utils';
2222
import type {MDXFrontMatter} from './frontMatter';
2323
import type {Options} from './options';
2424
import type {AdmonitionOptions} from './remark/admonitions';
25-
26-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
2725
import type {ProcessorOptions} from '@mdx-js/mdx';
2826

2927
// TODO as of April 2023, no way to import/re-export this ESM type easily :/

packages/docusaurus-mdx-loader/src/remark/admonitions/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
7-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
87
import type {Transformer, Plugin} from 'unified';
9-
10-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
118
import type {ContainerDirective} from 'mdast-util-directive';
129
import type {Parent, Root} from 'mdast';
1310

packages/docusaurus-mdx-loader/src/remark/contentTitle/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
7-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
87
import type {Transformer, Plugin} from 'unified';
98
import type {Heading, Parent, Root} from 'mdast';
10-
11-
// @ts-expect-error: ES support...
129
import type {MdxJsxFlowElement} from 'mdast-util-mdx';
1310

1411
interface PluginOptions {

packages/docusaurus-mdx-loader/src/remark/details/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
98
import type {Transformer} from 'unified';
109

1110
import type {Root} from 'mdast';

packages/docusaurus-mdx-loader/src/remark/head/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
98
import type {Transformer} from 'unified';
109

1110
import type {Root} from 'mdast';

packages/docusaurus-mdx-loader/src/remark/headings/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
/* Based on remark-slug (https://github.com/remarkjs/remark-slug) and gatsby-remark-autolink-headers (https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-autolink-headers) */
99

1010
import {parseMarkdownHeadingId, createSlugger} from '@docusaurus/utils';
11-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
1211
import type {Plugin, Transformer} from 'unified';
1312
import type {Root, Text} from 'mdast';
1413

packages/docusaurus-mdx-loader/src/remark/mdx1Compat/codeCompatPlugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
// @ts-expect-error: TODO see https://github.com/microsoft/TypeScript/issues/49721
98
import type {Transformer, Plugin} from 'unified';
109
import type {Root} from 'mdast';
1110

0 commit comments

Comments
 (0)