From c0a27ffa3dcaef296ef58ce37bd8ca0a9d315d6e Mon Sep 17 00:00:00 2001 From: Bas Bosman Date: Wed, 22 Mar 2023 11:42:11 +0100 Subject: [PATCH] feat: support typescript 5.0 (#3566) --- @commitlint/load/package.json | 2 +- package.json | 2 +- tsconfig.shared.json | 1 - yarn.lock | 7 ++++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 1a2d00cac4..11ab05da98 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -57,7 +57,7 @@ "lodash.uniq": "^4.5.0", "resolve-from": "^5.0.0", "ts-node": "^10.8.1", - "typescript": "^4.6.4" + "typescript": "^4.6.4 || ^5.0.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/package.json b/package.json index ec66efe24a..08a0dcb98d 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,6 @@ "lerna": "^6.0.0", "lint-staged": "13.1.2", "prettier": "^2.0.5", - "typescript": "^4.9.3" + "typescript": "^5.0.2" } } diff --git a/tsconfig.shared.json b/tsconfig.shared.json index 387485948c..9bf558f248 100644 --- a/tsconfig.shared.json +++ b/tsconfig.shared.json @@ -15,7 +15,6 @@ "noUnusedLocals": true, "noUnusedParameters": true, "forceConsistentCasingInFileNames": true, - "keyofStringsOnly": true, "noFallthroughCasesInSwitch": true, "isolatedModules": true, "skipLibCheck": true, diff --git a/yarn.lock b/yarn.lock index 0c0b87b49b..0766eaa554 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8500,11 +8500,16 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -"typescript@^3 || ^4", typescript@^4.6.4, typescript@^4.9.3: +"typescript@^3 || ^4": version "4.9.4" resolved "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== +"typescript@^4.6.4 || ^5.0.0", typescript@^5.0.2: + version "5.0.2" + resolved "https://registry.npmjs.org/typescript/-/typescript-5.0.2.tgz#891e1a90c5189d8506af64b9ef929fca99ba1ee5" + integrity sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw== + uglify-js@^3.1.4: version "3.17.4" resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"