Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clients): extend from root TSConfig #2864

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2176a87
chore(deps-dev): bump jest to v27
trivikr Oct 5, 2021
486f377
chore(lib-*): bump to jest 27
trivikr Oct 5, 2021
27e1528
chore(deps-dev): bump ts-jest to v27
trivikr Oct 5, 2021
22919fa
test(node-http-handler): use promisified setTimeout
trivikr Oct 5, 2021
08790a4
test(eventstream-handler-node): use events.once for testing event in …
trivikr Oct 5, 2021
87bb688
test(middleware-retry): use legacy fakeTimers
trivikr Oct 5, 2021
32c105a
test: set jest-environment as jsdom where Blob is used
trivikr Oct 5, 2021
8460ac6
test(lib-storage): removed redundant done callbacks
trivikr Oct 5, 2021
43a9086
test: set jest testEnvironment as jsdom for browser/rn packages
trivikr Oct 5, 2021
836a535
test(util-waiter): use legacy fakeTimers
trivikr Oct 5, 2021
c1c7511
fix(credential-provider-cognito-identity): tests to bump jest to v27
trivikr Oct 5, 2021
d5aaafd
test(node-http-handler): use legacy fakeTimers
trivikr Oct 5, 2021
ff1eb70
chore(tsconfig): remove sourceMap
trivikr Oct 5, 2021
2b7bca2
fix: add src to compilerOPtions.paths
trivikr Oct 4, 2021
0bab2de
chore: include clients and protocol_tests root tsconfig
trivikr Oct 4, 2021
5902016
chore: rename tsconfig.json to tsconfig.cjs.json
trivikr Oct 4, 2021
b035741
chore(clients): extend tsconfig from root
trivikr Oct 4, 2021
ecb21b5
fix(clients): import mocha types where mocha is used
trivikr Oct 4, 2021
7aa2dbc
fix: patch Jest memory leak by calling GC afterEach
trivikr Oct 5, 2021
e4f1886
Revert "fix: patch Jest memory leak by calling GC afterEach"
trivikr Oct 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions clients/client-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "3.35.0",
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:docs": "yarn clean:docs && typedoc ./",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
Expand Down Expand Up @@ -57,9 +57,9 @@
"@types/node": "^12.7.5",
"@types/uuid": "^8.3.0",
"downlevel-dts": "0.7.0",
"jest": "^26.1.0",
"jest": "^27.2.4",
"rimraf": "^3.0.0",
"ts-jest": "^26.4.1",
"ts-jest": "^27.0.5",
"typedoc": "^0.19.2",
"typescript": "~4.3.5"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
{
"compilerOptions": {
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-cjs",
"removeComments": true
"outDir": "dist-cjs"
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand All @@ -29,5 +18,7 @@
"theme": "minimal",
"plugin": ["@aws-sdk/client-documentation-generator"]
},
"exclude": ["test/**/*"]
"exclude": ["test/**/*"],
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
14 changes: 7 additions & 7 deletions clients/client-accessanalyzer/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.es.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist-es"
}
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-es",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"]
},
"include": ["src/"]
}
9 changes: 5 additions & 4 deletions clients/client-accessanalyzer/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.types.json",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"baseUrl": ".",
"rootDir": "src",
"declarationDir": "dist-types"
},
"exclude": ["test/**/*", "dist-types/**/*"]
"exclude": ["test/**/*", "dist-types/**/*"],
"include": ["src/"]
}
6 changes: 3 additions & 3 deletions clients/client-account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "3.35.0",
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:docs": "yarn clean:docs && typedoc ./",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
Expand Down Expand Up @@ -55,9 +55,9 @@
"@aws-sdk/client-documentation-generator": "3.35.0",
"@types/node": "^12.7.5",
"downlevel-dts": "0.7.0",
"jest": "^26.1.0",
"jest": "^27.2.4",
"rimraf": "^3.0.0",
"ts-jest": "^26.4.1",
"ts-jest": "^27.0.5",
"typedoc": "^0.19.2",
"typescript": "~4.3.5"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
{
"compilerOptions": {
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-cjs",
"removeComments": true
"outDir": "dist-cjs"
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand All @@ -29,5 +18,7 @@
"theme": "minimal",
"plugin": ["@aws-sdk/client-documentation-generator"]
},
"exclude": ["test/**/*"]
"exclude": ["test/**/*"],
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
14 changes: 7 additions & 7 deletions clients/client-account/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.es.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist-es"
}
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-es",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"]
},
"include": ["src/"]
}
33 changes: 0 additions & 33 deletions clients/client-account/tsconfig.json

This file was deleted.

9 changes: 5 additions & 4 deletions clients/client-account/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.types.json",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"baseUrl": ".",
"rootDir": "src",
"declarationDir": "dist-types"
},
"exclude": ["test/**/*", "dist-types/**/*"]
"exclude": ["test/**/*", "dist-types/**/*"],
"include": ["src/"]
}
6 changes: 3 additions & 3 deletions clients/client-acm-pca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "3.35.0",
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:docs": "yarn clean:docs && typedoc ./",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
Expand Down Expand Up @@ -56,9 +56,9 @@
"@aws-sdk/client-documentation-generator": "3.35.0",
"@types/node": "^12.7.5",
"downlevel-dts": "0.7.0",
"jest": "^26.1.0",
"jest": "^27.2.4",
"rimraf": "^3.0.0",
"ts-jest": "^26.4.1",
"ts-jest": "^27.0.5",
"typedoc": "^0.19.2",
"typescript": "~4.3.5"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
{
"compilerOptions": {
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-cjs",
"removeComments": true
"outDir": "dist-cjs"
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand All @@ -29,5 +18,7 @@
"theme": "minimal",
"plugin": ["@aws-sdk/client-documentation-generator"]
},
"exclude": ["test/**/*"]
"exclude": ["test/**/*"],
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
14 changes: 7 additions & 7 deletions clients/client-acm-pca/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.es.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist-es"
}
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-es",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"]
},
"include": ["src/"]
}
9 changes: 5 additions & 4 deletions clients/client-acm-pca/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.types.json",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"baseUrl": ".",
"rootDir": "src",
"declarationDir": "dist-types"
},
"exclude": ["test/**/*", "dist-types/**/*"]
"exclude": ["test/**/*", "dist-types/**/*"],
"include": ["src/"]
}
6 changes: 3 additions & 3 deletions clients/client-acm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "3.35.0",
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:docs": "yarn clean:docs && typedoc ./",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
Expand Down Expand Up @@ -56,9 +56,9 @@
"@aws-sdk/client-documentation-generator": "3.35.0",
"@types/node": "^12.7.5",
"downlevel-dts": "0.7.0",
"jest": "^26.1.0",
"jest": "^27.2.4",
"rimraf": "^3.0.0",
"ts-jest": "^26.4.1",
"ts-jest": "^27.0.5",
"typedoc": "^0.19.2",
"typescript": "~4.3.5"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
{
"compilerOptions": {
"alwaysStrict": true,
"target": "ES2018",
"module": "commonjs",
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"incremental": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-cjs",
"removeComments": true
"outDir": "dist-cjs"
},
"typedocOptions": {
"exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
Expand All @@ -29,5 +18,7 @@
"theme": "minimal",
"plugin": ["@aws-sdk/client-documentation-generator"]
},
"exclude": ["test/**/*"]
"exclude": ["test/**/*"],
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
14 changes: 7 additions & 7 deletions clients/client-acm/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.es.json",
"compilerOptions": {
"target": "es5",
"module": "esnext",
"moduleResolution": "node",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"outDir": "dist-es"
}
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist-es",
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"]
},
"include": ["src/"]
}
9 changes: 5 additions & 4 deletions clients/client-acm/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": "./tsconfig",
"extends": "../../tsconfig.types.json",
"compilerOptions": {
"removeComments": false,
"declaration": true,
"baseUrl": ".",
"rootDir": "src",
"declarationDir": "dist-types"
},
"exclude": ["test/**/*", "dist-types/**/*"]
"exclude": ["test/**/*", "dist-types/**/*"],
"include": ["src/"]
}
6 changes: 3 additions & 3 deletions clients/client-alexa-for-business/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "3.35.0",
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
"build:cjs": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:docs": "yarn clean:docs && typedoc ./",
"build:es": "tsc -p tsconfig.es.json",
"build:types": "tsc -p tsconfig.types.json",
Expand Down Expand Up @@ -57,9 +57,9 @@
"@types/node": "^12.7.5",
"@types/uuid": "^8.3.0",
"downlevel-dts": "0.7.0",
"jest": "^26.1.0",
"jest": "^27.2.4",
"rimraf": "^3.0.0",
"ts-jest": "^26.4.1",
"ts-jest": "^27.0.5",
"typedoc": "^0.19.2",
"typescript": "~4.3.5"
},
Expand Down
Loading