Skip to content

Commit

Permalink
feat(clients): remove comments from transpiled JS files (#2817)
Browse files Browse the repository at this point in the history
* chore(clients): add build:types and tsconfig.types.json

* chore(clients): add build:types to build

* chore(clients): remove declaration* from tsconfig.es.json

* chore(clients): update tsconfig.json to removeComments
  • Loading branch information
trivikr authored Sep 24, 2021
1 parent e6fc7f3 commit d01420b
Show file tree
Hide file tree
Showing 1,136 changed files with 3,678 additions and 1,974 deletions.
5 changes: 3 additions & 2 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-accessanalyzer/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-accessanalyzer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-accessanalyzer/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-acm-pca/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-acm-pca/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-acm-pca/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-acm/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-acm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-acm/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-alexa-for-business/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-alexa-for-business/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-alexa-for-business/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "jest --coverage --passWithNoTests",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-amp/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-amp/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-amplify/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amplify/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-amplify/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-amplifybackend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "jest --coverage --passWithNoTests",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-amplifybackend/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-amplifybackend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-amplifybackend/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
5 changes: 3 additions & 2 deletions clients/client-api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"test": "exit 0",
"build:cjs": "tsc -p tsconfig.json",
"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
"build:types": "tsc -p tsconfig.types.json"
},
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
Expand Down
2 changes: 0 additions & 2 deletions clients/client-api-gateway/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"declarationDir": null,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist/es"
}
Expand Down
5 changes: 2 additions & 3 deletions clients/client-api-gateway/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
Expand All @@ -12,8 +11,8 @@
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"declarationDir": "./dist/types",
"outDir": "dist/cjs"
"outDir": "dist/cjs",
"removeComments": true
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand Down
8 changes: 8 additions & 0 deletions clients/client-api-gateway/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"declarationDir": "dist/types"
}
}
Loading

0 comments on commit d01420b

Please sign in to comment.