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,