Skip to content

Commit

Permalink
chore(packages): use types as a declarationDir (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jan 21, 2021
1 parent 601c03b commit b1fee2c
Show file tree
Hide file tree
Showing 271 changed files with 273 additions and 100 deletions.
11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pids
*.pid.lock
lib-cov
configuration
coverage
.nyc_output
.grunt
.lock-wscript
Expand Down Expand Up @@ -37,13 +36,9 @@ codegen/sdk-codegen/smithy-build.json
*/out/
*/*/out/

protocol_tests/*/coverage
protocol_tests/*/dist
protocol_tests/*/types

lib/*/coverage
lib/*/dist
lib/*/types
coverage
dist
types

/verdaccio/*
!/verdaccio/config.yaml
2 changes: 1 addition & 1 deletion lib/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Storage higher order operation",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"scripts": {
"prepublishOnly": "yarn build:cjs && yarn build:es",
"pretest": "yarn build:cjs",
Expand Down
1 change: 1 addition & 0 deletions lib/storage/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"sourceMap": false,
"declaration": true,
"stripInternal": true,
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"importHelpers": true,
Expand Down
1 change: 1 addition & 0 deletions lib/storage/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"sourceMap": false,
"declaration": true,
"stripInternal": true,
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"importHelpers": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/abort-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A simple abort controller library",
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"scripts": {
"prepublishOnly": "yarn build:cjs && yarn build:es",
"pretest": "yarn build:cjs",
Expand Down
1 change: 1 addition & 0 deletions packages/abort-controller/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"stripInternal": true,
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/abort-controller/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"lib": ["es5", "es2015.collection"],
"stripInternal": true,
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/body-checksum-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/body-checksum-browser/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/body-checksum-browser/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/body-checksum-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/body-checksum-node/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/body-checksum-node/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/chunked-blob-reader-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/chunked-blob-reader-native/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/chunked-blob-reader-native/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/chunked-blob-reader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/chunked-blob-reader/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/chunked-blob-reader/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/chunked-stream-reader-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/chunked-stream-reader-node/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/chunked-stream-reader-node/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/client-documentation-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/client-documentation-generator/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"strict": false,
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"experimentalDecorators": true,
Expand Down
1 change: 1 addition & 0 deletions packages/client-documentation-generator/tsconfig.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"strict": false,
"lib": ["es2015"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"experimentalDecorators": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/config-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
1 change: 1 addition & 0 deletions packages/config-resolver/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/config-resolver/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"url": "https://aws.amazon.com/javascript/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"strict": false,
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"experimentalDecorators": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"strict": false,
"lib": ["es2015"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"experimentalDecorators": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-cognito-identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "./dist/cjs/index.js",
"module": "./dist/es/index.js",
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"sideEffects": false,
"author": {
"name": "AWS SDK for JavaScript Team",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"declarationDir": "./dist/cjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"declaration": false,
"lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"declarationDir": null,
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"jest": "^26.1.0",
"typescript": "~4.1.2"
},
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"engines": {
"node": ">= 10.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-env/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-env/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["es5", "es2015.promise", "es2015.collection"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-imds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"nock": "^13.0.2",
"typescript": "~4.1.2"
},
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"engines": {
"node": ">= 10.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-imds/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-imds/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["es5", "es2015.promise", "es2015.collection"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-ini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"jest": "^26.1.0",
"typescript": "~4.1.2"
},
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"engines": {
"node": ">= 10.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-ini/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-ini/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"lib": ["es5", "es2015.promise", "es2015.collection"],
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"jest": "^26.1.0",
"typescript": "~4.1.2"
},
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/credential-provider-node",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-node/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/cjs",
"baseUrl": "."
Expand Down
1 change: 1 addition & 0 deletions packages/credential-provider-node/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declarationDir": "./types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
Expand Down
2 changes: 1 addition & 1 deletion packages/credential-provider-process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"jest": "^26.1.0",
"typescript": "~4.1.2"
},
"types": "./dist/cjs/index.d.ts",
"types": "./types/index.d.ts",
"engines": {
"node": ">= 10.0.0"
},
Expand Down
Loading

0 comments on commit b1fee2c

Please sign in to comment.