From 1a8e60065a84cb9ecf3f69012c02478169b61d0f Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:28:13 +0000 Subject: [PATCH 1/2] chore: move typedocOptions to typedoc.json --- .../smithy/typescript/codegen/tsconfig.json | 20 ------------------- .../smithy/typescript/codegen/typedoc.json | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/typedoc.json 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 9ab9ec404f6..4633e99df0e 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 @@ -14,25 +14,5 @@ "outDir": "dist-cjs", "removeComments": true }, - "typedocOptions": { - "exclude": [ - "**/node_modules/**", - "**/*.spec.ts", - "**/protocols/*.ts", - "**/e2e/*.ts", - "**/endpoints.ts" - ], - "excludeNotExported": true, - "excludePrivate": true, - "hideGenerator": true, - "ignoreCompilerErrors": true, - "includeDeclarations": true, - "stripInternal": true, - "readme": "README.md", - "mode": "file", - "out": "docs", - "theme": "minimal", - "plugin": ["@aws-sdk/service-client-documentation-generator"] - }, "exclude": ["test/**/*"] } diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/typedoc.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/typedoc.json new file mode 100644 index 00000000000..e0e6779a501 --- /dev/null +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/typedoc.json @@ -0,0 +1,20 @@ +{ + "exclude": [ + "**/node_modules/**", + "**/*.spec.ts", + "**/protocols/*.ts", + "**/e2e/*.ts", + "**/endpoints.ts" + ], + "excludeNotExported": true, + "excludePrivate": true, + "hideGenerator": true, + "ignoreCompilerErrors": true, + "includeDeclarations": true, + "stripInternal": true, + "readme": "README.md", + "mode": "file", + "out": "docs", + "theme": "minimal", + "plugin": ["@aws-sdk/service-client-documentation-generator"] +} From 5d857849832ac82a10f2576b4c277478d249d478 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:29:29 +0000 Subject: [PATCH 2/2] chore: copy typedoc.json in CodegenVisitor --- .../amazon/smithy/typescript/codegen/CodegenVisitor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenVisitor.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenVisitor.java index 09722381e22..19dbb178511 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenVisitor.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/CodegenVisitor.java @@ -70,6 +70,7 @@ class CodegenVisitor extends ShapeVisitor.Default { * A mapping of static resource files to copy over to a new filename. */ private static final Map STATIC_FILE_COPIES = MapUtils.of( + "typedoc.json", "typedoc.json", "tsconfig.json", "tsconfig.json", "tsconfig.es.json", "tsconfig.es.json", "tsconfig.types.json", "tsconfig.types.json"