Skip to content

Commit 30a5934

Browse files
authored
Site deps update (#290)
* site: minor tweaks to improve vscode integration * site: use latest LTS node version (18 is near EOL) * site: run yarn upgrade * site: upgrade node version used in CI
1 parent 7639c7f commit 30a5934

File tree

6 files changed

+283
-292
lines changed

6 files changed

+283
-292
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
if: steps.check_changes.outputs.has_changes == 'true'
102102
uses: actions/setup-node@v4
103103
with:
104-
node-version: 20
104+
node-version: 22
105105
cache: "yarn"
106106
cache-dependency-path: ./site/yarn.lock # Changed from site/yarn.lock to ./site/yarn.lock
107107

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
]
4444
},
4545
"engines": {
46-
"node": ">=18.0"
46+
"node": ">=22.0"
4747
}
4848
}

site/src/components/HomepageFeatures/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import styles from "./styles.module.css";
55
type FeatureItem = {
66
title: string;
77
Svg: React.ComponentType<React.ComponentProps<"svg">>;
8-
description: JSX.Element;
8+
description: React.ReactElement;
99
};
1010

1111
const FeatureList: FeatureItem[] = [
@@ -55,7 +55,7 @@ function Feature({ title, Svg, description }: FeatureItem) {
5555
);
5656
}
5757

58-
export default function HomepageFeatures(): JSX.Element {
58+
export default function HomepageFeatures(): React.ReactElement {
5959
return (
6060
<section className={styles.features}>
6161
<div className="container">

site/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function VideoSection() {
6868
);
6969
}
7070

71-
export default function Home(): JSX.Element {
71+
export default function Home(): React.ReactElement {
7272
const { siteConfig } = useDocusaurusContext();
7373
return (
7474
<Layout

site/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// This file is not used in compilation. It is here just for a nice editor experience.
33
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
5+
"jsx": "react-jsx",
56
"baseUrl": "."
67
}
7-
}
8+
}

0 commit comments

Comments
 (0)