Skip to content

Commit 678237d

Browse files
trivikrsrchase
authored andcommitted
Move types in dist folder (smithy-lang#294)
1 parent b558759 commit 678237d

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"build:cjs": "tsc -p tsconfig.json",
1414
"build:es": "tsc -p tsconfig.es.json",
1515
"build": "yarn build:cjs && yarn build:es",
16-
"postbuild": "downlevel-dts types types/ts3.4"
16+
"postbuild": "downlevel-dts dist/types dist/types/ts3.4"
1717
},
1818
"main": "./dist/cjs/index.js",
19-
"types": "./types/index.d.ts",
19+
"types": "./dist/types/index.d.ts",
2020
"module": "./dist/es/index.js",
2121
"browser": {
2222
"./runtimeConfig": "./runtimeConfig.browser"

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/tsconfig.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@
1212
"incremental": true,
1313
"resolveJsonModule": true,
1414
"esModuleInterop": true,
15-
"declarationDir": "./types",
15+
"declarationDir": "dist/types",
1616
"outDir": "dist/cjs"
1717
},
1818
"typedocOptions": {
19-
"exclude": ["**/node_modules/**", "**/*.spec.ts", "./protocols/*.ts", "./e2e/*.ts", "./endpoints.ts"],
19+
"exclude": [
20+
"**/node_modules/**",
21+
"**/*.spec.ts",
22+
"./protocols/*.ts",
23+
"./e2e/*.ts",
24+
"./endpoints.ts"
25+
],
2026
"excludeNotExported": true,
2127
"excludePrivate": true,
2228
"hideGenerator": true,

0 commit comments

Comments
 (0)