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" 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"] +}