Skip to content

Commit 7b8ae40

Browse files
author
Chase Coalwell
committed
use smithy-core package as aws dependency
1 parent bdfed1c commit 7b8ae40

File tree

5 files changed

+4
-41
lines changed

5 files changed

+4
-41
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class CodegenVisitor extends ShapeVisitor.Default<Void> {
5353

5454
/** A mapping of static resource files to copy over to a new filename. */
5555
private static final Map<String, String> STATIC_FILE_COPIES = MapUtils.of(
56-
"lib/smithy.ts", "smithy.ts",
5756
"tsconfig.es.json", "tsconfig.es.json",
5857
"tsconfig.json", "tsconfig.json",
5958
"tsconfig.test.json", "tsconfig.test.json"

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 "../lib/smithy";
71+
* import * as _smithy from "@aws-sdk/smithy-core";
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 "../lib/smithy";
131+
* import * as _smithy from "@aws-sdk/smithy-core";
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("./lib/smithy", "/")
283+
.namespace("@aws-sdk/smithy-core", "/")
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ 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),
3334
INVALID_DEPENDENCY("dependencies", "@aws-sdk/invalid-dependency", "^0.1.0-preview.1", true),
3435
CONFIG_RESOLVER("dependencies", "@aws-sdk/config-resolver", "^0.1.0-preview.5", true),
3536
TYPES_NODE("devDependencies", "@types/node", "^12.7.5", true),

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/smithy.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)