From 6f6f6fe6127715a2a0fa7d0c405654073cb443b3 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Wed, 6 Sep 2023 10:43:28 -0700 Subject: [PATCH] Update `ExtensionConfiguration`s to generate for clients only (#911) --- .../typescript/codegen/DirectedTypeScriptCodegen.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/DirectedTypeScriptCodegen.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/DirectedTypeScriptCodegen.java index 39f975e2ef9..945108f3325 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/DirectedTypeScriptCodegen.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/DirectedTypeScriptCodegen.java @@ -437,14 +437,12 @@ public void customizeBeforeIntegrations( LOGGER.fine("Generating " + target + " runtime configuration"); configGenerator.generate(target); } + new ExtensionConfigurationGenerator(directive.model(), directive.service(), directive.symbolProvider(), + directive.context().writerDelegator(), directive.context().integrations()).generate(); + new RuntimeExtensionsGenerator(directive.model(), directive.service(), directive.symbolProvider(), + directive.context().writerDelegator(), directive.context().integrations()).generate(); } - new ExtensionConfigurationGenerator(directive.model(), directive.service(), directive.symbolProvider(), - directive.context().writerDelegator(), directive.context().integrations()).generate(); - - new RuntimeExtensionsGenerator(directive.model(), directive.service(), directive.symbolProvider(), - directive.context().writerDelegator(), directive.context().integrations()).generate(); - // Generate index for client. BiConsumer> writerFactory = directive.context().writerDelegator()::useFileWriter;