Skip to content

Commit

Permalink
Merge pull request #234 from fox-forks/hyperupcall-node21
Browse files Browse the repository at this point in the history
Support Node 21
  • Loading branch information
orta committed Nov 9, 2023
2 parents b9e1a07 + 6d8fe27 commit 84f659b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,20 @@ Add to your `tsconfig.json`:
```json
"extends": "@tsconfig/node20/tsconfig.json"
```
### Node 21 <kbd><a href="./bases/node21.json">tsconfig.json</a></kbd>

Install:

```sh
npm install --save-dev @tsconfig/node21
yarn add --dev @tsconfig/node21
```

Add to your `tsconfig.json`:

```json
"extends": "@tsconfig/node21/tsconfig.json"
```
### Nuxt <kbd><a href="./bases/nuxt.json">tsconfig.json</a></kbd>

Install:
Expand Down
17 changes: 17 additions & 0 deletions bases/node21.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 21",
"_version": "21.0.0",

"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022",

"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}

0 comments on commit 84f659b

Please sign in to comment.