Skip to content

Commit

Permalink
feat: add node22 support (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryabukhinstep authored Jan 20, 2025
1 parent 9c742b6 commit c5ceb44
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@ or
}
```

### Node 22

```json
{
"extends": "@byndyusoft/tsconfig/tsconfig.node22.json"
}
```

or

```json
{
"extends": "@byndyusoft/tsconfig/tsconfig.app.node22.json"
}
```

## Maintainers

- [@Byndyusoft/owners](https://github.com/orgs/Byndyusoft/teams/owners) <<[email protected]>>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"dependencies": {
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node18": "^1.0.1",
"@tsconfig/node20": "^20.1.4"
"@tsconfig/node20": "^20.1.4",
"@tsconfig/node22": "^22.0.0"
},
"devDependencies": {
"@commitlint/cli": "17.4.2",
Expand Down
9 changes: 9 additions & 0 deletions tsconfig.app.node22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.node22.json",
"compilerOptions": {
// Emit
"declaration": false,
"declarationMap": false,
"removeComments": true
}
}
26 changes: 26 additions & 0 deletions tsconfig.node22.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
// Type Checking
"allowUnreachableCode": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// Modules
"module": "Node16",
"moduleResolution": "Node16",
// Emit
"declaration": true,
"declarationMap": true,
"importHelpers": true,
"newLine": "lf",
"preserveConstEnums": true,
"sourceMap": true,
// Language and Environment
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
// Projects
"incremental": true
}
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ __metadata:
"@tsconfig/node16": "npm:^1.0.3"
"@tsconfig/node18": "npm:^1.0.1"
"@tsconfig/node20": "npm:^20.1.4"
"@tsconfig/node22": "npm:^22.0.0"
husky: "npm:8.0.3"
lint-staged: "npm:13.1.0"
markdownlint-cli: "npm:0.33.0"
Expand Down Expand Up @@ -859,6 +860,13 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/node22@npm:^22.0.0":
version: 22.0.0
resolution: "@tsconfig/node22@npm:22.0.0"
checksum: 8ff8e32982825d7911918c48207b1b923293a7a4f3002db761a291025a383624bb117ab1fdd829d1e30abb25ddd182c63bbeb9155aa34864a08c6929729770ea
languageName: node
linkType: hard

"@types/minimist@npm:^1.2.0":
version: 1.2.2
resolution: "@types/minimist@npm:1.2.2"
Expand Down

0 comments on commit c5ceb44

Please sign in to comment.