Skip to content

Commit 0582b5d

Browse files
committed
chore: generate types in tsconfig.types.json
1 parent aef33a8 commit 0582b5d

File tree

4 files changed

+7
-20
lines changed

4 files changed

+7
-20
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"test": "jest --coverage --passWithNoTests",
1313
"build:cjs": "tsc -p tsconfig.json",
1414
"build:es": "tsc -p tsconfig.es.json",
15-
"build": "yarn build:cjs && yarn build:es"
15+
"build:types": "tsc -p tsconfig.types.json",
16+
"build": "yarn build:cjs && yarn build:es && yarn build:types"
1617
},
1718
"main": "./dist/cjs/index.js",
1819
"types": "./dist/types/index.d.ts",

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

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"target": "es5",
55
"module": "esnext",
66
"moduleResolution": "node",
7-
"declaration": false,
8-
"declarationDir": null,
97
"lib": [
108
"dom",
119
"es5",

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"alwaysStrict": true,
44
"target": "ES2018",
55
"module": "commonjs",
6-
"declaration": true,
76
"strict": true,
87
"sourceMap": true,
98
"downlevelIteration": true,
@@ -12,8 +11,8 @@
1211
"incremental": true,
1312
"resolveJsonModule": true,
1413
"esModuleInterop": true,
15-
"declarationDir": "dist/types",
16-
"outDir": "dist/cjs"
14+
"outDir": "dist/cjs",
15+
"removeComments": true
1716
},
1817
"typedocOptions": {
1918
"exclude": [
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
{
22
"extends": "./tsconfig",
33
"compilerOptions": {
4-
"target": "es5",
5-
"module": "esnext",
6-
"moduleResolution": "node",
7-
"declaration": false,
8-
"declarationDir": null,
9-
"lib": [
10-
"dom",
11-
"es5",
12-
"es2015.promise",
13-
"es2015.collection",
14-
"es2015.iterable",
15-
"es2015.symbol.wellknown"
16-
],
17-
"outDir": "dist/es"
4+
"removeComments": false,
5+
"declaration": true,
6+
"declarationDir": "dist/types"
187
}
198
}

0 commit comments

Comments
 (0)