Skip to content

Commit

Permalink
feat: add new config for node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
vglebovich-lmru authored Jun 25, 2024
1 parent c19febd commit 9c742b6
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 2 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ yarn add -D @byndyusoft/tsconfig

Add to your `tsconfig.json`:

### Node 16

```json
{
"extends": "@byndyusoft/tsconfig/tsconfig.node16.json"
Expand All @@ -37,7 +39,7 @@ or
}
```

or
### Node 18

```json
{
Expand All @@ -53,6 +55,22 @@ or
}
```

### Node 20

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

or

```json
{
"extends": "@byndyusoft/tsconfig/tsconfig.app.node20.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 @@ -28,7 +28,8 @@
},
"dependencies": {
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node18": "^1.0.1"
"@tsconfig/node18": "^1.0.1",
"@tsconfig/node20": "^20.1.4"
},
"devDependencies": {
"@commitlint/cli": "17.4.2",
Expand Down
9 changes: 9 additions & 0 deletions tsconfig.app.node20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.node20.json",
"compilerOptions": {
// Emit
"declaration": false,
"declarationMap": false,
"removeComments": true
}
}
26 changes: 26 additions & 0 deletions tsconfig.node20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": "@tsconfig/node20/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 @@ -40,6 +40,7 @@ __metadata:
"@commitlint/config-conventional": "npm:17.4.2"
"@tsconfig/node16": "npm:^1.0.3"
"@tsconfig/node18": "npm:^1.0.1"
"@tsconfig/node20": "npm:^20.1.4"
husky: "npm:8.0.3"
lint-staged: "npm:13.1.0"
markdownlint-cli: "npm:0.33.0"
Expand Down Expand Up @@ -851,6 +852,13 @@ __metadata:
languageName: node
linkType: hard

"@tsconfig/node20@npm:^20.1.4":
version: 20.1.4
resolution: "@tsconfig/node20@npm:20.1.4"
checksum: 8096e46d93e43a97811286fb154b36261f8a3a747eb73e8911b9ec0338dcf6236bf2a0e510b08649ca74b94153577da1c7e23c87903a95fcd5e567f21f28c501
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 9c742b6

Please sign in to comment.