From dfc61079dbda104fc4fc8b26012003a3a3eedddb Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 13 Sep 2021 23:26:52 +0000 Subject: [PATCH 1/2] chore: downgrade typescript to ~4.3.5 --- .../software/amazon/smithy/typescript/codegen/base-package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json index 1146d0eb6dc..bdd618b8700 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json @@ -33,7 +33,7 @@ "rimraf": "^3.0.0", "ts-jest": "^26.4.1", "typedoc": "^0.19.2", - "typescript": "~4.4.2" + "typescript": "~4.3.5" }, "engines": { "node": ">=10.0.0" From 27afc311126c23a8e73b129ce6a0ba71ab0315ca Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 13 Sep 2021 23:27:18 +0000 Subject: [PATCH 2/2] fix(tsconfig): remove Unknown compiler option useUnknownInCatchVariables --- .../software/amazon/smithy/typescript/codegen/tsconfig.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json index b5ae4c1ecba..15ef55fbb76 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json @@ -13,8 +13,7 @@ "resolveJsonModule": true, "esModuleInterop": true, "declarationDir": "dist/types", - "outDir": "dist/cjs", - "useUnknownInCatchVariables": false, + "outDir": "dist/cjs" }, "typedocOptions": { "exclude": [