build: use node18 tsconfig preset

Because of https://github.com/typeorm/typeorm/pull/9884, we need to manually disable useDefineForClassFields

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-03-26 17:33:13 +02:00 committed by Tilman Vatteroth
parent 8fc59aad82
commit f238b216f9
3 changed files with 15 additions and 5 deletions

View file

@ -81,7 +81,7 @@
"@nestjs/schematics": "9.0.4",
"@nestjs/testing": "9.3.12",
"@trivago/prettier-plugin-sort-imports": "4.1.1",
"@tsconfig/node12": "1.0.11",
"@tsconfig/node18": "1.0.1",
"@types/cli-color": "2.0.2",
"@types/cookie": "0.5.1",
"@types/cookie-signature": "1.1.0",

View file

@ -1,5 +1,7 @@
{
"extends": "@tsconfig/node12/tsconfig.json",
"extends": [
"@tsconfig/node18/tsconfig.json"
],
"compilerOptions": {
"declaration": true,
"removeComments": true,
@ -12,6 +14,7 @@
"incremental": true,
"strict": true,
"strictPropertyInitialization": false,
"resolveJsonModule": true
"resolveJsonModule": true,
"useDefineForClassFields": false
}
}

View file

@ -2208,7 +2208,7 @@ __metadata:
"@nestjs/typeorm": 9.0.1
"@nestjs/websockets": 9.3.12
"@trivago/prettier-plugin-sort-imports": 4.1.1
"@tsconfig/node12": 1.0.11
"@tsconfig/node18": 1.0.1
"@types/bcrypt": 5.0.0
"@types/cli-color": 2.0.2
"@types/cookie": 0.5.1
@ -4127,7 +4127,7 @@ __metadata:
languageName: node
linkType: hard
"@tsconfig/node12@npm:1.0.11, @tsconfig/node12@npm:^1.0.7":
"@tsconfig/node12@npm:^1.0.7":
version: 1.0.11
resolution: "@tsconfig/node12@npm:1.0.11"
checksum: 5ce29a41b13e7897a58b8e2df11269c5395999e588b9a467386f99d1d26f6c77d1af2719e407621412520ea30517d718d5192a32403b8dfcc163bf33e40a338a
@ -4148,6 +4148,13 @@ __metadata:
languageName: node
linkType: hard
"@tsconfig/node18@npm:1.0.1":
version: 1.0.1
resolution: "@tsconfig/node18@npm:1.0.1"
checksum: aba11b453e40b03a33321e5b2bd51ba2d5213503bb95f1ecd56a5dd0be31eef1ab9ddfe06b4eae99075692641de905d57a38d671a9288bacac82327d393de1e2
languageName: node
linkType: hard
"@types/accepts@npm:*":
version: 1.3.5
resolution: "@types/accepts@npm:1.3.5"