Skip to content

Commit 354b7df

Browse files
committed
docs: update the examples to use Node.js 22 as it's the active LTS
1 parent 22e15e3 commit 354b7df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ Add one of the available configurations to your `tsconfig.json`:
3333
First install the base tsconfig and types for the Node.js version you are targeting, for example:
3434

3535
```sh
36-
npm add -D @tsconfig/node18 @types/node@18
36+
npm add -D @tsconfig/node22 @types/node@22
3737
```
3838

3939
If you are not using any bundlers, the Node.js code doesn't rely on any Vue/Vite-specific features, then these would be enough, you may not need to extend the Vue TSConfig:
4040

4141
```json
42-
"extends": "@tsconfig/node18/tsconfig.json",
42+
"extends": "@tsconfig/node22/tsconfig.json",
4343
"compilerOptions": {
4444
"types": ["node"]
4545
}
@@ -49,15 +49,15 @@ Otherwise, if you are trying to use Vue components in Node.js environments (e.g.
4949

5050
```json
5151
"extends": [
52-
"@tsconfig/node18/tsconfig.json",
52+
"@tsconfig/node22/tsconfig.json",
5353
"@vue/tsconfig/tsconfig.json"
5454
],
5555
"compilerOptions": {
5656
"types": ["node"]
5757
}
5858
```
5959

60-
Make sure to place `@vue/tsconfig/tsconfig.json` *after* `@tsconfig/node18/tsconfig.json` so that it takes precedence.
60+
Make sure to place `@vue/tsconfig/tsconfig.json` *after* `@tsconfig/node22/tsconfig.json` so that it takes precedence.
6161

6262
## Emitting Declaration Files
6363

0 commit comments

Comments
 (0)