From e219b4d04fc039e52787ed146aea2be3bdef7e2c Mon Sep 17 00:00:00 2001 From: Eduardo Rodrigues Date: Thu, 17 Nov 2022 15:28:56 +0100 Subject: [PATCH 1/2] fix: missing dom type in tsconfig --- .../software/amazon/smithy/typescript/codegen/tsconfig.json | 1 + 1 file changed, 1 insertion(+) 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 344909de212..9df78b40035 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 @@ -1,6 +1,7 @@ { "extends": "@tsconfig/node14/tsconfig.json", "compilerOptions": { + "lib": ["es2020", "dom"], "downlevelIteration": true, "importHelpers": true, "incremental": true, From 0434a107b81ed16f224c160d2efebe389ccfa294 Mon Sep 17 00:00:00 2001 From: Eduardo Rodrigues Date: Thu, 17 Nov 2022 16:22:57 +0100 Subject: [PATCH 2/2] chore: exclude node_modules folder in tsconfig --- .../software/amazon/smithy/typescript/codegen/tsconfig.json | 2 +- .../amazon/smithy/typescript/codegen/tsconfig.types.json | 2 +- 2 files changed, 2 insertions(+), 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 9df78b40035..e202245735f 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 @@ -10,5 +10,5 @@ "rootDir": "src", "useUnknownInCatchVariables": false }, - "exclude": ["test/"] + "exclude": ["node_modules/", "test/"] } diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.types.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.types.json index 4c3dfa7b3d2..33fc3b6c744 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.types.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.types.json @@ -6,5 +6,5 @@ "declarationDir": "dist-types", "emitDeclarationOnly": true }, - "exclude": ["test/**/*", "dist-types/**/*"] + "exclude": ["node_modules/", "test/**/*", "dist-types/**/*"] }