From 05df2309eef464e6741ba2c3e65f15a24cb5a1ce Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 24 Mar 2021 15:33:15 +0000 Subject: [PATCH] Move types in dist folder --- .../amazon/smithy/typescript/codegen/base-package.json | 4 ++-- .../amazon/smithy/typescript/codegen/tsconfig.json | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json index eec31da70ee..dd204a619cc 100644 --- a/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json +++ b/smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json @@ -13,10 +13,10 @@ "build:cjs": "tsc -p tsconfig.json", "build:es": "tsc -p tsconfig.es.json", "build": "yarn build:cjs && yarn build:es", - "postbuild": "downlevel-dts types types/ts3.4" + "postbuild": "downlevel-dts dist/types dist/types/ts3.4" }, "main": "./dist/cjs/index.js", - "types": "./types/index.d.ts", + "types": "./dist/types/index.d.ts", "module": "./dist/es/index.js", "browser": { "./runtimeConfig": "./runtimeConfig.browser" 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 4cf936f614b..25b5401940b 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 @@ -12,11 +12,17 @@ "incremental": true, "resolveJsonModule": true, "esModuleInterop": true, - "declarationDir": "./types", + "declarationDir": "dist/types", "outDir": "dist/cjs" }, "typedocOptions": { - "exclude": ["**/node_modules/**", "**/*.spec.ts", "./protocols/*.ts", "./e2e/*.ts", "./endpoints.ts"], + "exclude": [ + "**/node_modules/**", + "**/*.spec.ts", + "./protocols/*.ts", + "./e2e/*.ts", + "./endpoints.ts" + ], "excludeNotExported": true, "excludePrivate": true, "hideGenerator": true,