Skip to content

Commit f731158

Browse files
author
Chase Coalwell
committed
import from smithy-clinet instead of smithy-core
1 parent 7b8ae40 commit f731158

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void run() {
6868
* <p>The following TypeScript is rendered:
6969
*
7070
* <pre>{@code
71-
* import * as _smithy from "@aws-sdk/smithy-core";
71+
* import * as _smithy from "@aws-sdk/smithy-client";
7272
*
7373
* export interface Person {
7474
* __type?: "Person";
@@ -128,7 +128,7 @@ private void renderNonErrorStructure() {
128128
* <p>The following TypeScript is generated:
129129
*
130130
* <pre>{@code
131-
* import * as _smithy from "@aws-sdk/smithy-core";
131+
* import * as _smithy from "@aws-sdk/smithy-client";
132132
*
133133
* export interface NoSuchResource extends _smithy.SmithyException, $MetadataBearer {
134134
* __type: "NoSuchResource";

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/SymbolVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public Symbol structureShape(StructureShape shape) {
280280
private Symbol.Builder addSmithyImport(Symbol.Builder builder) {
281281
Symbol importSymbol = Symbol.builder()
282282
.name("*")
283-
.namespace("@aws-sdk/smithy-core", "/")
283+
.namespace("@aws-sdk/smithy-client", "/")
284284
.build();
285285
SymbolReference reference = SymbolReference.builder()
286286
.symbol(importSymbol)

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptDependency.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public enum TypeScriptDependency implements SymbolDependencyContainer {
3030
TS_LIB("devDependencies", "tslib", "^1.8.0", true),
3131
AWS_SDK_TYPES("dependencies", "@aws-sdk/types", "^0.1.0-preview.5", true),
3232
AWS_SMITHY_CLIENT("dependencies", "@aws-sdk/smithy-client", "^0.1.0-preview.1", true),
33-
AWS_SMITHY_CORE("dependencies", "@aws-sdk/smithy-core", "^0.1.0-preview.1", true),
3433
INVALID_DEPENDENCY("dependencies", "@aws-sdk/invalid-dependency", "^0.1.0-preview.1", true),
3534
CONFIG_RESOLVER("dependencies", "@aws-sdk/config-resolver", "^0.1.0-preview.5", true),
3635
TYPES_NODE("devDependencies", "@types/node", "^12.7.5", true),

0 commit comments

Comments
 (0)