From e6fc7f3e0fa74785590ac19e7ed143c916bb9b6e Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 23 Sep 2021 15:41:35 -0700 Subject: [PATCH] feat(non-clients): remove comments from transpiled JS files (#2813) --- .gitignore | 2 + lib/lib-dynamodb/package.json | 3 +- lib/lib-dynamodb/tsconfig.cjs.json | 1 - lib/lib-dynamodb/tsconfig.es.json | 1 - lib/lib-dynamodb/tsconfig.types.json | 9 + lib/lib-storage/package.json | 3 +- lib/lib-storage/tsconfig.cjs.json | 1 - lib/lib-storage/tsconfig.es.json | 1 - lib/lib-storage/tsconfig.types.json | 9 + packages/abort-controller/package.json | 3 +- packages/abort-controller/tsconfig.cjs.json | 1 - packages/abort-controller/tsconfig.es.json | 1 - packages/abort-controller/tsconfig.types.json | 9 + packages/body-checksum-browser/package.json | 3 +- .../body-checksum-browser/tsconfig.cjs.json | 1 - .../body-checksum-browser/tsconfig.es.json | 1 - .../body-checksum-browser/tsconfig.types.json | 9 + packages/body-checksum-node/package.json | 3 +- packages/body-checksum-node/tsconfig.cjs.json | 1 - packages/body-checksum-node/tsconfig.es.json | 1 - .../body-checksum-node/tsconfig.types.json | 9 + .../chunked-blob-reader-native/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/chunked-blob-reader/package.json | 3 +- .../chunked-blob-reader/tsconfig.cjs.json | 1 - packages/chunked-blob-reader/tsconfig.es.json | 1 - .../chunked-blob-reader/tsconfig.types.json | 9 + .../chunked-stream-reader-node/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 10 + packages/config-resolver/package.json | 3 +- packages/config-resolver/tsconfig.cjs.json | 1 - packages/config-resolver/tsconfig.es.json | 1 - packages/config-resolver/tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 10 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/credential-provider-env/package.json | 3 +- .../credential-provider-env/tsconfig.cjs.json | 1 - .../credential-provider-env/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../credential-provider-imds/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../credential-provider-imds/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/credential-provider-ini/package.json | 3 +- .../credential-provider-ini/tsconfig.cjs.json | 1 - .../credential-provider-ini/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../credential-provider-node/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../credential-provider-node/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../credential-provider-process/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/credential-provider-sso/package.json | 3 +- .../credential-provider-sso/tsconfig.cjs.json | 1 - .../credential-provider-sso/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/credential-providers/package.json | 3 +- .../credential-providers/tsconfig.cjs.json | 1 - .../credential-providers/tsconfig.es.json | 1 - .../credential-providers/tsconfig.types.json | 9 + packages/endpoint-cache/package.json | 3 +- packages/endpoint-cache/tsconfig.cjs.json | 1 - packages/endpoint-cache/tsconfig.es.json | 1 - packages/endpoint-cache/tsconfig.types.json | 9 + .../eventstream-handler-node/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../eventstream-handler-node/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/eventstream-marshaller/package.json | 3 +- .../eventstream-marshaller/tsconfig.cjs.json | 1 - .../eventstream-marshaller/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../eventstream-serde-browser/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/eventstream-serde-node/package.json | 3 +- .../eventstream-serde-node/tsconfig.cjs.json | 1 - .../eventstream-serde-node/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../eventstream-serde-universal/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/fetch-http-handler/package.json | 3 +- packages/fetch-http-handler/tsconfig.cjs.json | 1 - packages/fetch-http-handler/tsconfig.es.json | 1 - .../fetch-http-handler/tsconfig.types.json | 9 + packages/hash-blob-browser/package.json | 3 +- packages/hash-blob-browser/tsconfig.cjs.json | 1 - packages/hash-blob-browser/tsconfig.es.json | 1 - .../hash-blob-browser/tsconfig.types.json | 9 + packages/hash-node/package.json | 3 +- packages/hash-node/tsconfig.cjs.json | 1 - packages/hash-node/tsconfig.es.json | 1 - packages/hash-node/tsconfig.types.json | 9 + packages/hash-stream-node/package.json | 3 +- packages/hash-stream-node/tsconfig.cjs.json | 1 - packages/hash-stream-node/tsconfig.es.json | 1 - packages/hash-stream-node/tsconfig.types.json | 9 + packages/invalid-dependency/package.json | 3 +- packages/invalid-dependency/tsconfig.cjs.json | 1 - packages/invalid-dependency/tsconfig.es.json | 1 - .../invalid-dependency/tsconfig.types.json | 9 + packages/is-array-buffer/package.json | 3 +- packages/is-array-buffer/tsconfig.cjs.json | 1 - packages/is-array-buffer/tsconfig.es.json | 1 - packages/is-array-buffer/tsconfig.types.json | 9 + packages/karma-credential-loader/package.json | 3 +- .../karma-credential-loader/tsconfig.cjs.json | 1 - .../karma-credential-loader/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/md5-js/package.json | 3 +- packages/md5-js/tsconfig.cjs.json | 1 - packages/md5-js/tsconfig.es.json | 1 - packages/md5-js/tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../middleware-bucket-endpoint/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../middleware-content-length/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-eventstream/package.json | 3 +- .../middleware-eventstream/tsconfig.cjs.json | 1 - .../middleware-eventstream/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../middleware-expect-continue/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../middleware-header-default/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-host-header/package.json | 3 +- .../middleware-host-header/tsconfig.cjs.json | 1 - .../middleware-host-header/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-logger/package.json | 3 +- packages/middleware-logger/tsconfig.cjs.json | 1 - packages/middleware-logger/tsconfig.es.json | 1 - .../middleware-logger/tsconfig.types.json | 9 + packages/middleware-retry/package.json | 3 +- packages/middleware-retry/tsconfig.cjs.json | 1 - packages/middleware-retry/tsconfig.es.json | 1 - packages/middleware-retry/tsconfig.types.json | 9 + .../middleware-sdk-api-gateway/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-sdk-ec2/package.json | 3 +- packages/middleware-sdk-ec2/tsconfig.cjs.json | 1 - packages/middleware-sdk-ec2/tsconfig.es.json | 1 - .../middleware-sdk-ec2/tsconfig.types.json | 9 + packages/middleware-sdk-glacier/package.json | 3 +- .../middleware-sdk-glacier/tsconfig.cjs.json | 1 - .../middleware-sdk-glacier/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-sdk-rds/package.json | 3 +- packages/middleware-sdk-rds/tsconfig.cjs.json | 1 - packages/middleware-sdk-rds/tsconfig.es.json | 1 - .../middleware-sdk-rds/tsconfig.types.json | 9 + packages/middleware-sdk-route53/package.json | 3 +- .../middleware-sdk-route53/tsconfig.cjs.json | 1 - .../middleware-sdk-route53/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + .../middleware-sdk-s3-control/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-sdk-s3/package.json | 3 +- packages/middleware-sdk-s3/tsconfig.cjs.json | 1 - packages/middleware-sdk-s3/tsconfig.es.json | 1 - .../middleware-sdk-s3/tsconfig.types.json | 9 + packages/middleware-sdk-sqs/package.json | 3 +- packages/middleware-sdk-sqs/tsconfig.cjs.json | 1 - packages/middleware-sdk-sqs/tsconfig.es.json | 1 - .../middleware-sdk-sqs/tsconfig.types.json | 9 + packages/middleware-sdk-sts/package.json | 3 +- packages/middleware-sdk-sts/tsconfig.cjs.json | 1 - packages/middleware-sdk-sts/tsconfig.es.json | 1 - .../middleware-sdk-sts/tsconfig.types.json | 9 + .../package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/middleware-serde/package.json | 3 +- packages/middleware-serde/tsconfig.cjs.json | 1 - packages/middleware-serde/tsconfig.es.json | 1 - packages/middleware-serde/tsconfig.types.json | 9 + packages/middleware-signing/package.json | 3 +- packages/middleware-signing/tsconfig.cjs.json | 1 - packages/middleware-signing/tsconfig.es.json | 1 - .../middleware-signing/tsconfig.types.json | 9 + packages/middleware-ssec/package.json | 3 +- packages/middleware-ssec/tsconfig.cjs.json | 1 - packages/middleware-ssec/tsconfig.es.json | 1 - packages/middleware-ssec/tsconfig.types.json | 9 + packages/middleware-stack/package.json | 3 +- packages/middleware-stack/tsconfig.cjs.json | 1 - packages/middleware-stack/tsconfig.es.json | 1 - packages/middleware-stack/tsconfig.types.json | 9 + packages/middleware-user-agent/package.json | 3 +- .../middleware-user-agent/tsconfig.cjs.json | 1 - .../middleware-user-agent/tsconfig.es.json | 1 - .../middleware-user-agent/tsconfig.types.json | 9 + packages/node-config-provider/package.json | 3 +- .../node-config-provider/tsconfig.cjs.json | 1 - .../node-config-provider/tsconfig.es.json | 1 - .../node-config-provider/tsconfig.types.json | 9 + packages/node-http-handler/package.json | 3 +- packages/node-http-handler/tsconfig.cjs.json | 1 - packages/node-http-handler/tsconfig.es.json | 1 - .../node-http-handler/tsconfig.types.json | 9 + packages/polly-request-presigner/package.json | 3 +- .../polly-request-presigner/tsconfig.cjs.json | 1 - .../polly-request-presigner/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/property-provider/package.json | 3 +- packages/property-provider/tsconfig.cjs.json | 1 - packages/property-provider/tsconfig.es.json | 1 - .../property-provider/tsconfig.types.json | 9 + packages/protocol-http/package.json | 3 +- packages/protocol-http/tsconfig.cjs.json | 1 - packages/protocol-http/tsconfig.es.json | 1 - packages/protocol-http/tsconfig.types.json | 9 + packages/querystring-builder/package.json | 3 +- .../querystring-builder/tsconfig.cjs.json | 1 - packages/querystring-builder/tsconfig.es.json | 1 - .../querystring-builder/tsconfig.types.json | 9 + packages/querystring-parser/package.json | 3 +- packages/querystring-parser/tsconfig.cjs.json | 1 - packages/querystring-parser/tsconfig.es.json | 1 - .../querystring-parser/tsconfig.types.json | 9 + packages/s3-presigned-post/package.json | 3 +- packages/s3-presigned-post/tsconfig.cjs.json | 1 - packages/s3-presigned-post/tsconfig.es.json | 1 - .../s3-presigned-post/tsconfig.types.json | 9 + packages/s3-request-presigner/package.json | 3 +- .../s3-request-presigner/tsconfig.cjs.json | 1 - .../s3-request-presigner/tsconfig.es.json | 1 - .../s3-request-presigner/tsconfig.types.json | 9 + .../service-error-classification/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/sha256-tree-hash/package.json | 3 +- packages/sha256-tree-hash/tsconfig.cjs.json | 1 - packages/sha256-tree-hash/tsconfig.es.json | 1 - packages/sha256-tree-hash/tsconfig.types.json | 9 + packages/shared-ini-file-loader/package.json | 3 +- .../shared-ini-file-loader/tsconfig.cjs.json | 1 - .../shared-ini-file-loader/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/signature-v4-crt/package.json | 3 +- packages/signature-v4-crt/tsconfig.cjs.json | 1 - packages/signature-v4-crt/tsconfig.es.json | 1 - packages/signature-v4-crt/tsconfig.types.json | 9 + packages/signature-v4/package.json | 3 +- packages/signature-v4/tsconfig.cjs.json | 1 - packages/signature-v4/tsconfig.es.json | 1 - packages/signature-v4/tsconfig.types.json | 9 + packages/smithy-client/package.json | 3 +- packages/smithy-client/tsconfig.cjs.json | 1 - packages/smithy-client/tsconfig.es.json | 1 - packages/smithy-client/tsconfig.types.json | 9 + packages/types/package.json | 3 +- packages/types/src/abort.d.ts | 42 +++ packages/types/src/client.d.ts | 34 ++ packages/types/src/command.d.ts | 17 + packages/types/src/credentials.d.ts | 24 ++ packages/types/src/crypto.d.ts | 45 +++ packages/types/src/eventStream.d.ts | 100 +++++ packages/types/src/http.d.ts | 92 +++++ packages/types/src/index.d.ts | 17 + packages/types/src/logger.d.ts | 26 ++ packages/types/src/middleware.d.ts | 346 ++++++++++++++++++ packages/types/src/pagination.d.ts | 14 + packages/types/src/response.d.ts | 34 ++ packages/types/src/serde.d.ts | 49 +++ packages/types/src/shapes.d.ts | 51 +++ packages/types/src/signature.d.ts | 100 +++++ packages/types/src/transfer.d.ts | 16 + packages/types/src/util.d.ts | 100 +++++ packages/types/src/waiter.d.ts | 32 ++ packages/types/tsconfig.cjs.json | 1 - packages/types/tsconfig.es.json | 1 - packages/types/tsconfig.types.json | 9 + packages/url-parser/package.json | 3 +- packages/url-parser/tsconfig.cjs.json | 1 - packages/url-parser/tsconfig.es.json | 1 - packages/url-parser/tsconfig.types.json | 9 + packages/util-arn-parser/package.json | 3 +- packages/util-arn-parser/tsconfig.cjs.json | 1 - packages/util-arn-parser/tsconfig.es.json | 1 - packages/util-arn-parser/tsconfig.types.json | 9 + packages/util-base64-browser/package.json | 3 +- .../util-base64-browser/tsconfig.cjs.json | 1 - packages/util-base64-browser/tsconfig.es.json | 1 - .../util-base64-browser/tsconfig.types.json | 9 + packages/util-base64-node/package.json | 3 +- packages/util-base64-node/tsconfig.cjs.json | 1 - packages/util-base64-node/tsconfig.es.json | 1 - packages/util-base64-node/tsconfig.types.json | 9 + .../util-body-length-browser/package.json | 3 +- .../tsconfig.cjs.json | 1 - .../util-body-length-browser/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/util-body-length-node/package.json | 3 +- .../util-body-length-node/tsconfig.cjs.json | 1 - .../util-body-length-node/tsconfig.es.json | 1 - .../util-body-length-node/tsconfig.types.json | 9 + packages/util-buffer-from/package.json | 3 +- packages/util-buffer-from/tsconfig.cjs.json | 1 - packages/util-buffer-from/tsconfig.es.json | 1 - packages/util-buffer-from/tsconfig.types.json | 9 + packages/util-create-request/package.json | 3 +- .../util-create-request/tsconfig.cjs.json | 1 - packages/util-create-request/tsconfig.es.json | 1 - .../util-create-request/tsconfig.types.json | 9 + packages/util-credentials/package.json | 3 +- packages/util-credentials/tsconfig.cjs.json | 1 - packages/util-credentials/tsconfig.es.json | 1 - packages/util-credentials/tsconfig.types.json | 9 + packages/util-dynamodb/package.json | 3 +- packages/util-dynamodb/tsconfig.cjs.json | 1 - packages/util-dynamodb/tsconfig.es.json | 1 - packages/util-dynamodb/tsconfig.types.json | 9 + packages/util-format-url/package.json | 3 +- packages/util-format-url/tsconfig.cjs.json | 1 - packages/util-format-url/tsconfig.es.json | 1 - packages/util-format-url/tsconfig.types.json | 9 + packages/util-hex-encoding/package.json | 3 +- packages/util-hex-encoding/tsconfig.cjs.json | 1 - packages/util-hex-encoding/tsconfig.es.json | 1 - .../util-hex-encoding/tsconfig.types.json | 9 + packages/util-locate-window/package.json | 3 +- packages/util-locate-window/tsconfig.cjs.json | 1 - packages/util-locate-window/tsconfig.es.json | 1 - .../util-locate-window/tsconfig.types.json | 9 + packages/util-uri-escape/package.json | 3 +- packages/util-uri-escape/tsconfig.cjs.json | 1 - packages/util-uri-escape/tsconfig.es.json | 1 - packages/util-uri-escape/tsconfig.types.json | 9 + packages/util-user-agent-browser/package.json | 3 +- .../util-user-agent-browser/tsconfig.cjs.json | 1 - .../util-user-agent-browser/tsconfig.es.json | 1 - .../tsconfig.types.json | 9 + packages/util-user-agent-node/package.json | 3 +- .../util-user-agent-node/tsconfig.cjs.json | 1 - .../util-user-agent-node/tsconfig.es.json | 1 - .../util-user-agent-node/tsconfig.types.json | 9 + packages/util-utf8-browser/package.json | 3 +- packages/util-utf8-browser/tsconfig.cjs.json | 1 - packages/util-utf8-browser/tsconfig.es.json | 1 - .../util-utf8-browser/tsconfig.types.json | 9 + packages/util-utf8-node/package.json | 3 +- packages/util-utf8-node/tsconfig.cjs.json | 1 - packages/util-utf8-node/tsconfig.es.json | 1 - packages/util-utf8-node/tsconfig.types.json | 9 + packages/util-waiter/package.json | 3 +- packages/util-waiter/tsconfig.cjs.json | 1 - packages/util-waiter/tsconfig.es.json | 1 - packages/util-waiter/tsconfig.types.json | 9 + packages/xml-builder/package.json | 3 +- packages/xml-builder/tsconfig.cjs.json | 1 - packages/xml-builder/tsconfig.es.json | 1 - packages/xml-builder/tsconfig.types.json | 9 + tsconfig.cjs.json | 4 +- tsconfig.es.json | 1 - tsconfig.types.json | 8 + 414 files changed, 2231 insertions(+), 297 deletions(-) create mode 100644 lib/lib-dynamodb/tsconfig.types.json create mode 100644 lib/lib-storage/tsconfig.types.json create mode 100644 packages/abort-controller/tsconfig.types.json create mode 100644 packages/body-checksum-browser/tsconfig.types.json create mode 100644 packages/body-checksum-node/tsconfig.types.json create mode 100644 packages/chunked-blob-reader-native/tsconfig.types.json create mode 100644 packages/chunked-blob-reader/tsconfig.types.json create mode 100644 packages/chunked-stream-reader-node/tsconfig.types.json create mode 100644 packages/client-documentation-generator/tsconfig.types.json create mode 100644 packages/config-resolver/tsconfig.types.json create mode 100644 packages/core-packages-documentation-generator/tsconfig.types.json create mode 100644 packages/credential-provider-cognito-identity/tsconfig.types.json create mode 100644 packages/credential-provider-env/tsconfig.types.json create mode 100644 packages/credential-provider-imds/tsconfig.types.json create mode 100644 packages/credential-provider-ini/tsconfig.types.json create mode 100644 packages/credential-provider-node/tsconfig.types.json create mode 100644 packages/credential-provider-process/tsconfig.types.json create mode 100644 packages/credential-provider-sso/tsconfig.types.json create mode 100644 packages/credential-provider-web-identity/tsconfig.types.json create mode 100644 packages/credential-providers/tsconfig.types.json create mode 100644 packages/endpoint-cache/tsconfig.types.json create mode 100644 packages/eventstream-handler-node/tsconfig.types.json create mode 100644 packages/eventstream-marshaller/tsconfig.types.json create mode 100644 packages/eventstream-serde-browser/tsconfig.types.json create mode 100644 packages/eventstream-serde-config-resolver/tsconfig.types.json create mode 100644 packages/eventstream-serde-node/tsconfig.types.json create mode 100644 packages/eventstream-serde-universal/tsconfig.types.json create mode 100644 packages/fetch-http-handler/tsconfig.types.json create mode 100644 packages/hash-blob-browser/tsconfig.types.json create mode 100644 packages/hash-node/tsconfig.types.json create mode 100644 packages/hash-stream-node/tsconfig.types.json create mode 100644 packages/invalid-dependency/tsconfig.types.json create mode 100644 packages/is-array-buffer/tsconfig.types.json create mode 100644 packages/karma-credential-loader/tsconfig.types.json create mode 100644 packages/md5-js/tsconfig.types.json create mode 100644 packages/middleware-apply-body-checksum/tsconfig.types.json create mode 100644 packages/middleware-bucket-endpoint/tsconfig.types.json create mode 100644 packages/middleware-content-length/tsconfig.types.json create mode 100644 packages/middleware-endpoint-discovery/tsconfig.types.json create mode 100644 packages/middleware-eventstream/tsconfig.types.json create mode 100644 packages/middleware-expect-continue/tsconfig.types.json create mode 100644 packages/middleware-header-default/tsconfig.types.json create mode 100644 packages/middleware-host-header/tsconfig.types.json create mode 100644 packages/middleware-location-constraint/tsconfig.types.json create mode 100644 packages/middleware-logger/tsconfig.types.json create mode 100644 packages/middleware-retry/tsconfig.types.json create mode 100644 packages/middleware-sdk-api-gateway/tsconfig.types.json create mode 100644 packages/middleware-sdk-ec2/tsconfig.types.json create mode 100644 packages/middleware-sdk-glacier/tsconfig.types.json create mode 100644 packages/middleware-sdk-machinelearning/tsconfig.types.json create mode 100644 packages/middleware-sdk-rds/tsconfig.types.json create mode 100644 packages/middleware-sdk-route53/tsconfig.types.json create mode 100644 packages/middleware-sdk-s3-control/tsconfig.types.json create mode 100644 packages/middleware-sdk-s3/tsconfig.types.json create mode 100644 packages/middleware-sdk-sqs/tsconfig.types.json create mode 100644 packages/middleware-sdk-sts/tsconfig.types.json create mode 100644 packages/middleware-sdk-transcribe-streaming/tsconfig.types.json create mode 100644 packages/middleware-serde/tsconfig.types.json create mode 100644 packages/middleware-signing/tsconfig.types.json create mode 100644 packages/middleware-ssec/tsconfig.types.json create mode 100644 packages/middleware-stack/tsconfig.types.json create mode 100644 packages/middleware-user-agent/tsconfig.types.json create mode 100644 packages/node-config-provider/tsconfig.types.json create mode 100644 packages/node-http-handler/tsconfig.types.json create mode 100644 packages/polly-request-presigner/tsconfig.types.json create mode 100644 packages/property-provider/tsconfig.types.json create mode 100644 packages/protocol-http/tsconfig.types.json create mode 100644 packages/querystring-builder/tsconfig.types.json create mode 100644 packages/querystring-parser/tsconfig.types.json create mode 100644 packages/s3-presigned-post/tsconfig.types.json create mode 100644 packages/s3-request-presigner/tsconfig.types.json create mode 100644 packages/service-error-classification/tsconfig.types.json create mode 100644 packages/sha256-tree-hash/tsconfig.types.json create mode 100644 packages/shared-ini-file-loader/tsconfig.types.json create mode 100644 packages/signature-v4-crt/tsconfig.types.json create mode 100644 packages/signature-v4/tsconfig.types.json create mode 100644 packages/smithy-client/tsconfig.types.json create mode 100644 packages/types/src/abort.d.ts create mode 100644 packages/types/src/client.d.ts create mode 100644 packages/types/src/command.d.ts create mode 100644 packages/types/src/credentials.d.ts create mode 100644 packages/types/src/crypto.d.ts create mode 100644 packages/types/src/eventStream.d.ts create mode 100644 packages/types/src/http.d.ts create mode 100644 packages/types/src/index.d.ts create mode 100644 packages/types/src/logger.d.ts create mode 100644 packages/types/src/middleware.d.ts create mode 100644 packages/types/src/pagination.d.ts create mode 100644 packages/types/src/response.d.ts create mode 100644 packages/types/src/serde.d.ts create mode 100644 packages/types/src/shapes.d.ts create mode 100644 packages/types/src/signature.d.ts create mode 100644 packages/types/src/transfer.d.ts create mode 100644 packages/types/src/util.d.ts create mode 100644 packages/types/src/waiter.d.ts create mode 100644 packages/types/tsconfig.types.json create mode 100644 packages/url-parser/tsconfig.types.json create mode 100644 packages/util-arn-parser/tsconfig.types.json create mode 100644 packages/util-base64-browser/tsconfig.types.json create mode 100644 packages/util-base64-node/tsconfig.types.json create mode 100644 packages/util-body-length-browser/tsconfig.types.json create mode 100644 packages/util-body-length-node/tsconfig.types.json create mode 100644 packages/util-buffer-from/tsconfig.types.json create mode 100644 packages/util-create-request/tsconfig.types.json create mode 100644 packages/util-credentials/tsconfig.types.json create mode 100644 packages/util-dynamodb/tsconfig.types.json create mode 100644 packages/util-format-url/tsconfig.types.json create mode 100644 packages/util-hex-encoding/tsconfig.types.json create mode 100644 packages/util-locate-window/tsconfig.types.json create mode 100644 packages/util-uri-escape/tsconfig.types.json create mode 100644 packages/util-user-agent-browser/tsconfig.types.json create mode 100644 packages/util-user-agent-node/tsconfig.types.json create mode 100644 packages/util-utf8-browser/tsconfig.types.json create mode 100644 packages/util-utf8-node/tsconfig.types.json create mode 100644 packages/util-waiter/tsconfig.types.json create mode 100644 packages/xml-builder/tsconfig.types.json create mode 100644 tsconfig.types.json diff --git a/.gitignore b/.gitignore index b86c808fbbc5..f073e4e351d0 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,5 @@ dist /verdaccio/* !/verdaccio/config.yaml + +*.tsbuildinfo \ No newline at end of file diff --git a/lib/lib-dynamodb/package.json b/lib/lib-dynamodb/package.json index 1926300635a8..7919721f69a8 100644 --- a/lib/lib-dynamodb/package.json +++ b/lib/lib-dynamodb/package.json @@ -8,7 +8,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/lib/lib-dynamodb/tsconfig.cjs.json b/lib/lib-dynamodb/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/lib/lib-dynamodb/tsconfig.cjs.json +++ b/lib/lib-dynamodb/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/lib/lib-dynamodb/tsconfig.es.json b/lib/lib-dynamodb/tsconfig.es.json index 1f6002436c19..2805ebea8017 100644 --- a/lib/lib-dynamodb/tsconfig.es.json +++ b/lib/lib-dynamodb/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/lib/lib-dynamodb/tsconfig.types.json b/lib/lib-dynamodb/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/lib/lib-dynamodb/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/lib/lib-storage/package.json b/lib/lib-storage/package.json index 9d989da8067e..576bcbb65db9 100644 --- a/lib/lib-storage/package.json +++ b/lib/lib-storage/package.json @@ -8,7 +8,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/lib/lib-storage/tsconfig.cjs.json b/lib/lib-storage/tsconfig.cjs.json index c50daa4383ee..03aacdb59a82 100644 --- a/lib/lib-storage/tsconfig.cjs.json +++ b/lib/lib-storage/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/lib/lib-storage/tsconfig.es.json b/lib/lib-storage/tsconfig.es.json index 1f6002436c19..2805ebea8017 100644 --- a/lib/lib-storage/tsconfig.es.json +++ b/lib/lib-storage/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/lib/lib-storage/tsconfig.types.json b/lib/lib-storage/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/lib/lib-storage/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/abort-controller/package.json b/packages/abort-controller/package.json index 5e03be1617e9..579d5d590e66 100644 --- a/packages/abort-controller/package.json +++ b/packages/abort-controller/package.json @@ -8,7 +8,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/abort-controller/tsconfig.cjs.json b/packages/abort-controller/tsconfig.cjs.json index 1db0b864fe99..d755ddde2fff 100644 --- a/packages/abort-controller/tsconfig.cjs.json +++ b/packages/abort-controller/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/abort-controller/tsconfig.es.json b/packages/abort-controller/tsconfig.es.json index 4f63b1fac79f..6c96c41be9a4 100644 --- a/packages/abort-controller/tsconfig.es.json +++ b/packages/abort-controller/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "lib": ["es5", "es2015.collection"], "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/abort-controller/tsconfig.types.json b/packages/abort-controller/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/abort-controller/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/body-checksum-browser/package.json b/packages/body-checksum-browser/package.json index c87a56cf88cb..862ecb6da1e6 100644 --- a/packages/body-checksum-browser/package.json +++ b/packages/body-checksum-browser/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/body-checksum-browser/tsconfig.cjs.json b/packages/body-checksum-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/body-checksum-browser/tsconfig.cjs.json +++ b/packages/body-checksum-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/body-checksum-browser/tsconfig.es.json b/packages/body-checksum-browser/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/body-checksum-browser/tsconfig.es.json +++ b/packages/body-checksum-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/body-checksum-browser/tsconfig.types.json b/packages/body-checksum-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/body-checksum-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/body-checksum-node/package.json b/packages/body-checksum-node/package.json index 340be2fc95aa..c5daf3374e42 100644 --- a/packages/body-checksum-node/package.json +++ b/packages/body-checksum-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/body-checksum-node/tsconfig.cjs.json b/packages/body-checksum-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/body-checksum-node/tsconfig.cjs.json +++ b/packages/body-checksum-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/body-checksum-node/tsconfig.es.json b/packages/body-checksum-node/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/body-checksum-node/tsconfig.es.json +++ b/packages/body-checksum-node/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/body-checksum-node/tsconfig.types.json b/packages/body-checksum-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/body-checksum-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/chunked-blob-reader-native/package.json b/packages/chunked-blob-reader-native/package.json index 9faff80da1ec..7aa9cafeb9e7 100644 --- a/packages/chunked-blob-reader-native/package.json +++ b/packages/chunked-blob-reader-native/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/chunked-blob-reader-native/tsconfig.cjs.json b/packages/chunked-blob-reader-native/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/chunked-blob-reader-native/tsconfig.cjs.json +++ b/packages/chunked-blob-reader-native/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/chunked-blob-reader-native/tsconfig.es.json b/packages/chunked-blob-reader-native/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/chunked-blob-reader-native/tsconfig.es.json +++ b/packages/chunked-blob-reader-native/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/chunked-blob-reader-native/tsconfig.types.json b/packages/chunked-blob-reader-native/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/chunked-blob-reader-native/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/chunked-blob-reader/package.json b/packages/chunked-blob-reader/package.json index aabacab9b9d8..cabd4802c76f 100644 --- a/packages/chunked-blob-reader/package.json +++ b/packages/chunked-blob-reader/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/chunked-blob-reader/tsconfig.cjs.json b/packages/chunked-blob-reader/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/chunked-blob-reader/tsconfig.cjs.json +++ b/packages/chunked-blob-reader/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/chunked-blob-reader/tsconfig.es.json b/packages/chunked-blob-reader/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/chunked-blob-reader/tsconfig.es.json +++ b/packages/chunked-blob-reader/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/chunked-blob-reader/tsconfig.types.json b/packages/chunked-blob-reader/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/chunked-blob-reader/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/chunked-stream-reader-node/package.json b/packages/chunked-stream-reader-node/package.json index d7807d0eee72..bc7e62c0d4c6 100644 --- a/packages/chunked-stream-reader-node/package.json +++ b/packages/chunked-stream-reader-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/chunked-stream-reader-node/tsconfig.cjs.json b/packages/chunked-stream-reader-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/chunked-stream-reader-node/tsconfig.cjs.json +++ b/packages/chunked-stream-reader-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/chunked-stream-reader-node/tsconfig.es.json b/packages/chunked-stream-reader-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/chunked-stream-reader-node/tsconfig.es.json +++ b/packages/chunked-stream-reader-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/chunked-stream-reader-node/tsconfig.types.json b/packages/chunked-stream-reader-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/chunked-stream-reader-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/client-documentation-generator/package.json b/packages/client-documentation-generator/package.json index 8ef5e3d6ff73..690c1f799b25 100644 --- a/packages/client-documentation-generator/package.json +++ b/packages/client-documentation-generator/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "exit 0" }, diff --git a/packages/client-documentation-generator/tsconfig.cjs.json b/packages/client-documentation-generator/tsconfig.cjs.json index 6db5dd1d3f67..0f2edde70413 100644 --- a/packages/client-documentation-generator/tsconfig.cjs.json +++ b/packages/client-documentation-generator/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "strict": false, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "experimentalDecorators": true, diff --git a/packages/client-documentation-generator/tsconfig.es.json b/packages/client-documentation-generator/tsconfig.es.json index a6b399ca97b4..0bbb80454647 100644 --- a/packages/client-documentation-generator/tsconfig.es.json +++ b/packages/client-documentation-generator/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "strict": false, "lib": ["es2015"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "experimentalDecorators": true, diff --git a/packages/client-documentation-generator/tsconfig.types.json b/packages/client-documentation-generator/tsconfig.types.json new file mode 100644 index 000000000000..085613786ef8 --- /dev/null +++ b/packages/client-documentation-generator/tsconfig.types.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "strict": false, + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/config-resolver/package.json b/packages/config-resolver/package.json index 16230c44384f..828faefad1f5 100644 --- a/packages/config-resolver/package.json +++ b/packages/config-resolver/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/config-resolver/tsconfig.cjs.json b/packages/config-resolver/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/config-resolver/tsconfig.cjs.json +++ b/packages/config-resolver/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/config-resolver/tsconfig.es.json b/packages/config-resolver/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/config-resolver/tsconfig.es.json +++ b/packages/config-resolver/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/config-resolver/tsconfig.types.json b/packages/config-resolver/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/config-resolver/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/core-packages-documentation-generator/package.json b/packages/core-packages-documentation-generator/package.json index 6daa21b5af7f..769d1f6f06d7 100644 --- a/packages/core-packages-documentation-generator/package.json +++ b/packages/core-packages-documentation-generator/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "exit 0" }, diff --git a/packages/core-packages-documentation-generator/tsconfig.cjs.json b/packages/core-packages-documentation-generator/tsconfig.cjs.json index 6db5dd1d3f67..0f2edde70413 100644 --- a/packages/core-packages-documentation-generator/tsconfig.cjs.json +++ b/packages/core-packages-documentation-generator/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "strict": false, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "experimentalDecorators": true, diff --git a/packages/core-packages-documentation-generator/tsconfig.es.json b/packages/core-packages-documentation-generator/tsconfig.es.json index a6b399ca97b4..0bbb80454647 100644 --- a/packages/core-packages-documentation-generator/tsconfig.es.json +++ b/packages/core-packages-documentation-generator/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "strict": false, "lib": ["es2015"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "experimentalDecorators": true, diff --git a/packages/core-packages-documentation-generator/tsconfig.types.json b/packages/core-packages-documentation-generator/tsconfig.types.json new file mode 100644 index 000000000000..085613786ef8 --- /dev/null +++ b/packages/core-packages-documentation-generator/tsconfig.types.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "strict": false, + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-cognito-identity/package.json b/packages/credential-provider-cognito-identity/package.json index 75cd89ad4533..79cecfdf7dce 100644 --- a/packages/credential-provider-cognito-identity/package.json +++ b/packages/credential-provider-cognito-identity/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-cognito-identity/tsconfig.cjs.json b/packages/credential-provider-cognito-identity/tsconfig.cjs.json index d5facc3dcbbe..267a903b5db9 100644 --- a/packages/credential-provider-cognito-identity/tsconfig.cjs.json +++ b/packages/credential-provider-cognito-identity/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "noUnusedLocals": true, diff --git a/packages/credential-provider-cognito-identity/tsconfig.es.json b/packages/credential-provider-cognito-identity/tsconfig.es.json index 77cde063640d..b386e789f450 100644 --- a/packages/credential-provider-cognito-identity/tsconfig.es.json +++ b/packages/credential-provider-cognito-identity/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "noUnusedLocals": true, diff --git a/packages/credential-provider-cognito-identity/tsconfig.types.json b/packages/credential-provider-cognito-identity/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-cognito-identity/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-env/package.json b/packages/credential-provider-env/package.json index a5eff73f17a8..ae8002c8ce35 100644 --- a/packages/credential-provider-env/package.json +++ b/packages/credential-provider-env/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-env/tsconfig.cjs.json b/packages/credential-provider-env/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-env/tsconfig.cjs.json +++ b/packages/credential-provider-env/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-env/tsconfig.es.json b/packages/credential-provider-env/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-provider-env/tsconfig.es.json +++ b/packages/credential-provider-env/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-env/tsconfig.types.json b/packages/credential-provider-env/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-env/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-imds/package.json b/packages/credential-provider-imds/package.json index 1eec0cf1e5c9..dc8c5a4393b4 100644 --- a/packages/credential-provider-imds/package.json +++ b/packages/credential-provider-imds/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-imds/tsconfig.cjs.json b/packages/credential-provider-imds/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-imds/tsconfig.cjs.json +++ b/packages/credential-provider-imds/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-imds/tsconfig.es.json b/packages/credential-provider-imds/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-provider-imds/tsconfig.es.json +++ b/packages/credential-provider-imds/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-imds/tsconfig.types.json b/packages/credential-provider-imds/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-imds/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-ini/package.json b/packages/credential-provider-ini/package.json index 0350708bcdc7..80dcfe6bed45 100644 --- a/packages/credential-provider-ini/package.json +++ b/packages/credential-provider-ini/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-ini/tsconfig.cjs.json b/packages/credential-provider-ini/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-ini/tsconfig.cjs.json +++ b/packages/credential-provider-ini/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-ini/tsconfig.es.json b/packages/credential-provider-ini/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-provider-ini/tsconfig.es.json +++ b/packages/credential-provider-ini/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-ini/tsconfig.types.json b/packages/credential-provider-ini/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-ini/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-node/package.json b/packages/credential-provider-node/package.json index fb32a96ecfd9..2ff9be6cad06 100644 --- a/packages/credential-provider-node/package.json +++ b/packages/credential-provider-node/package.json @@ -10,7 +10,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-node/tsconfig.cjs.json b/packages/credential-provider-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-node/tsconfig.cjs.json +++ b/packages/credential-provider-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-node/tsconfig.es.json b/packages/credential-provider-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/credential-provider-node/tsconfig.es.json +++ b/packages/credential-provider-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-node/tsconfig.types.json b/packages/credential-provider-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-process/package.json b/packages/credential-provider-process/package.json index 1c61a13052a2..d7b9d4cd0226 100644 --- a/packages/credential-provider-process/package.json +++ b/packages/credential-provider-process/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-process/tsconfig.cjs.json b/packages/credential-provider-process/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-process/tsconfig.cjs.json +++ b/packages/credential-provider-process/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-process/tsconfig.es.json b/packages/credential-provider-process/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-provider-process/tsconfig.es.json +++ b/packages/credential-provider-process/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-process/tsconfig.types.json b/packages/credential-provider-process/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-process/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-sso/package.json b/packages/credential-provider-sso/package.json index 6b91c7f514f0..64d7a1a3d743 100644 --- a/packages/credential-provider-sso/package.json +++ b/packages/credential-provider-sso/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-sso/tsconfig.cjs.json b/packages/credential-provider-sso/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-sso/tsconfig.cjs.json +++ b/packages/credential-provider-sso/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-sso/tsconfig.es.json b/packages/credential-provider-sso/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-provider-sso/tsconfig.es.json +++ b/packages/credential-provider-sso/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-sso/tsconfig.types.json b/packages/credential-provider-sso/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-sso/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-provider-web-identity/package.json b/packages/credential-provider-web-identity/package.json index d22f31c7a218..733cd1e0edfb 100644 --- a/packages/credential-provider-web-identity/package.json +++ b/packages/credential-provider-web-identity/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-provider-web-identity/tsconfig.cjs.json b/packages/credential-provider-web-identity/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-provider-web-identity/tsconfig.cjs.json +++ b/packages/credential-provider-web-identity/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-provider-web-identity/tsconfig.es.json b/packages/credential-provider-web-identity/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-provider-web-identity/tsconfig.es.json +++ b/packages/credential-provider-web-identity/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-provider-web-identity/tsconfig.types.json b/packages/credential-provider-web-identity/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-provider-web-identity/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/credential-providers/package.json b/packages/credential-providers/package.json index 09edcae63e2b..bf3fbb26a2bd 100644 --- a/packages/credential-providers/package.json +++ b/packages/credential-providers/package.json @@ -22,7 +22,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/credential-providers/tsconfig.cjs.json b/packages/credential-providers/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/credential-providers/tsconfig.cjs.json +++ b/packages/credential-providers/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/credential-providers/tsconfig.es.json b/packages/credential-providers/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/credential-providers/tsconfig.es.json +++ b/packages/credential-providers/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/credential-providers/tsconfig.types.json b/packages/credential-providers/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/credential-providers/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/endpoint-cache/package.json b/packages/endpoint-cache/package.json index 332a06201c39..deeb5ca60be5 100644 --- a/packages/endpoint-cache/package.json +++ b/packages/endpoint-cache/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --passWithNoTests" }, diff --git a/packages/endpoint-cache/tsconfig.cjs.json b/packages/endpoint-cache/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/endpoint-cache/tsconfig.cjs.json +++ b/packages/endpoint-cache/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/endpoint-cache/tsconfig.es.json b/packages/endpoint-cache/tsconfig.es.json index c5f23ee06fb2..3cee69ff6d34 100644 --- a/packages/endpoint-cache/tsconfig.es.json +++ b/packages/endpoint-cache/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.iterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/endpoint-cache/tsconfig.types.json b/packages/endpoint-cache/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/endpoint-cache/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/eventstream-handler-node/package.json b/packages/eventstream-handler-node/package.json index 7d02dff38715..28ffb5aec80e 100644 --- a/packages/eventstream-handler-node/package.json +++ b/packages/eventstream-handler-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/eventstream-handler-node/tsconfig.cjs.json b/packages/eventstream-handler-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/eventstream-handler-node/tsconfig.cjs.json +++ b/packages/eventstream-handler-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/eventstream-handler-node/tsconfig.es.json b/packages/eventstream-handler-node/tsconfig.es.json index ce8bdbb66927..c1f5cd2e3789 100644 --- a/packages/eventstream-handler-node/tsconfig.es.json +++ b/packages/eventstream-handler-node/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es2018.asynciterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/eventstream-handler-node/tsconfig.types.json b/packages/eventstream-handler-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/eventstream-handler-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/eventstream-marshaller/package.json b/packages/eventstream-marshaller/package.json index 78eecbb7d651..e62b6d295282 100644 --- a/packages/eventstream-marshaller/package.json +++ b/packages/eventstream-marshaller/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --coverage" }, diff --git a/packages/eventstream-marshaller/tsconfig.cjs.json b/packages/eventstream-marshaller/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/eventstream-marshaller/tsconfig.cjs.json +++ b/packages/eventstream-marshaller/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/eventstream-marshaller/tsconfig.es.json b/packages/eventstream-marshaller/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/eventstream-marshaller/tsconfig.es.json +++ b/packages/eventstream-marshaller/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/eventstream-marshaller/tsconfig.types.json b/packages/eventstream-marshaller/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/eventstream-marshaller/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/eventstream-serde-browser/package.json b/packages/eventstream-serde-browser/package.json index d85bd94cd69d..36570f55b457 100644 --- a/packages/eventstream-serde-browser/package.json +++ b/packages/eventstream-serde-browser/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/eventstream-serde-browser/tsconfig.cjs.json b/packages/eventstream-serde-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/eventstream-serde-browser/tsconfig.cjs.json +++ b/packages/eventstream-serde-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/eventstream-serde-browser/tsconfig.es.json b/packages/eventstream-serde-browser/tsconfig.es.json index 59626528a3ab..2ad0ed908d11 100644 --- a/packages/eventstream-serde-browser/tsconfig.es.json +++ b/packages/eventstream-serde-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es2018.asynciterable", "DOM"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/eventstream-serde-browser/tsconfig.types.json b/packages/eventstream-serde-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/eventstream-serde-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/eventstream-serde-config-resolver/package.json b/packages/eventstream-serde-config-resolver/package.json index 3404a4ea8427..3448fa194262 100644 --- a/packages/eventstream-serde-config-resolver/package.json +++ b/packages/eventstream-serde-config-resolver/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/eventstream-serde-config-resolver/tsconfig.cjs.json b/packages/eventstream-serde-config-resolver/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/eventstream-serde-config-resolver/tsconfig.cjs.json +++ b/packages/eventstream-serde-config-resolver/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/eventstream-serde-config-resolver/tsconfig.es.json b/packages/eventstream-serde-config-resolver/tsconfig.es.json index ce8bdbb66927..c1f5cd2e3789 100644 --- a/packages/eventstream-serde-config-resolver/tsconfig.es.json +++ b/packages/eventstream-serde-config-resolver/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es2018.asynciterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/eventstream-serde-config-resolver/tsconfig.types.json b/packages/eventstream-serde-config-resolver/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/eventstream-serde-config-resolver/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/eventstream-serde-node/package.json b/packages/eventstream-serde-node/package.json index f0d7b2af9381..2e19dfa8e348 100644 --- a/packages/eventstream-serde-node/package.json +++ b/packages/eventstream-serde-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/eventstream-serde-node/tsconfig.cjs.json b/packages/eventstream-serde-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/eventstream-serde-node/tsconfig.cjs.json +++ b/packages/eventstream-serde-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/eventstream-serde-node/tsconfig.es.json b/packages/eventstream-serde-node/tsconfig.es.json index ce8bdbb66927..c1f5cd2e3789 100644 --- a/packages/eventstream-serde-node/tsconfig.es.json +++ b/packages/eventstream-serde-node/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es2018.asynciterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/eventstream-serde-node/tsconfig.types.json b/packages/eventstream-serde-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/eventstream-serde-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/eventstream-serde-universal/package.json b/packages/eventstream-serde-universal/package.json index 725c8094b3ff..1cdd3e2e8996 100644 --- a/packages/eventstream-serde-universal/package.json +++ b/packages/eventstream-serde-universal/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/eventstream-serde-universal/tsconfig.cjs.json b/packages/eventstream-serde-universal/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/eventstream-serde-universal/tsconfig.cjs.json +++ b/packages/eventstream-serde-universal/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/eventstream-serde-universal/tsconfig.es.json b/packages/eventstream-serde-universal/tsconfig.es.json index ce8bdbb66927..c1f5cd2e3789 100644 --- a/packages/eventstream-serde-universal/tsconfig.es.json +++ b/packages/eventstream-serde-universal/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es2018.asynciterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/eventstream-serde-universal/tsconfig.types.json b/packages/eventstream-serde-universal/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/eventstream-serde-universal/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/fetch-http-handler/package.json b/packages/fetch-http-handler/package.json index be3e06071e59..2abf05804804 100644 --- a/packages/fetch-http-handler/package.json +++ b/packages/fetch-http-handler/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --coverage && karma start karma.conf.js" }, diff --git a/packages/fetch-http-handler/tsconfig.cjs.json b/packages/fetch-http-handler/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/fetch-http-handler/tsconfig.cjs.json +++ b/packages/fetch-http-handler/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/fetch-http-handler/tsconfig.es.json b/packages/fetch-http-handler/tsconfig.es.json index a9229b989734..19c93eee9359 100644 --- a/packages/fetch-http-handler/tsconfig.es.json +++ b/packages/fetch-http-handler/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.iterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/fetch-http-handler/tsconfig.types.json b/packages/fetch-http-handler/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/fetch-http-handler/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/hash-blob-browser/package.json b/packages/hash-blob-browser/package.json index 824d50c4ca74..e8053afe1a21 100644 --- a/packages/hash-blob-browser/package.json +++ b/packages/hash-blob-browser/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "karma start karma.conf.js" }, diff --git a/packages/hash-blob-browser/tsconfig.cjs.json b/packages/hash-blob-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/hash-blob-browser/tsconfig.cjs.json +++ b/packages/hash-blob-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/hash-blob-browser/tsconfig.es.json b/packages/hash-blob-browser/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/hash-blob-browser/tsconfig.es.json +++ b/packages/hash-blob-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/hash-blob-browser/tsconfig.types.json b/packages/hash-blob-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/hash-blob-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/hash-node/package.json b/packages/hash-node/package.json index b5416f9f6e2a..6db8448b6e38 100644 --- a/packages/hash-node/package.json +++ b/packages/hash-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/hash-node/tsconfig.cjs.json b/packages/hash-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/hash-node/tsconfig.cjs.json +++ b/packages/hash-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/hash-node/tsconfig.es.json b/packages/hash-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/hash-node/tsconfig.es.json +++ b/packages/hash-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/hash-node/tsconfig.types.json b/packages/hash-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/hash-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/hash-stream-node/package.json b/packages/hash-stream-node/package.json index 6fb2d99cae3d..9d757a30c4eb 100644 --- a/packages/hash-stream-node/package.json +++ b/packages/hash-stream-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/hash-stream-node/tsconfig.cjs.json b/packages/hash-stream-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/hash-stream-node/tsconfig.cjs.json +++ b/packages/hash-stream-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/hash-stream-node/tsconfig.es.json b/packages/hash-stream-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/hash-stream-node/tsconfig.es.json +++ b/packages/hash-stream-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/hash-stream-node/tsconfig.types.json b/packages/hash-stream-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/hash-stream-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/invalid-dependency/package.json b/packages/invalid-dependency/package.json index 6190e3932510..acb176b13a07 100644 --- a/packages/invalid-dependency/package.json +++ b/packages/invalid-dependency/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/invalid-dependency/tsconfig.cjs.json b/packages/invalid-dependency/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/invalid-dependency/tsconfig.cjs.json +++ b/packages/invalid-dependency/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/invalid-dependency/tsconfig.es.json b/packages/invalid-dependency/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/invalid-dependency/tsconfig.es.json +++ b/packages/invalid-dependency/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/invalid-dependency/tsconfig.types.json b/packages/invalid-dependency/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/invalid-dependency/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/is-array-buffer/package.json b/packages/is-array-buffer/package.json index 0429a6ea0414..4fa090ee10d8 100644 --- a/packages/is-array-buffer/package.json +++ b/packages/is-array-buffer/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/is-array-buffer/tsconfig.cjs.json b/packages/is-array-buffer/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/is-array-buffer/tsconfig.cjs.json +++ b/packages/is-array-buffer/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/is-array-buffer/tsconfig.es.json b/packages/is-array-buffer/tsconfig.es.json index 77ceda5fec16..fe84cbe7e342 100644 --- a/packages/is-array-buffer/tsconfig.es.json +++ b/packages/is-array-buffer/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/is-array-buffer/tsconfig.types.json b/packages/is-array-buffer/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/is-array-buffer/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/karma-credential-loader/package.json b/packages/karma-credential-loader/package.json index f47cc3a18250..e5b553a287c6 100644 --- a/packages/karma-credential-loader/package.json +++ b/packages/karma-credential-loader/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --passWithNoTests" }, diff --git a/packages/karma-credential-loader/tsconfig.cjs.json b/packages/karma-credential-loader/tsconfig.cjs.json index 31cf3852ed0a..5c40a2409f48 100644 --- a/packages/karma-credential-loader/tsconfig.cjs.json +++ b/packages/karma-credential-loader/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "strict": false, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/karma-credential-loader/tsconfig.es.json b/packages/karma-credential-loader/tsconfig.es.json index def24e77d0cc..fe17fdadb4e7 100644 --- a/packages/karma-credential-loader/tsconfig.es.json +++ b/packages/karma-credential-loader/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "strict": false, "lib": ["es2015"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/karma-credential-loader/tsconfig.types.json b/packages/karma-credential-loader/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/karma-credential-loader/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/md5-js/package.json b/packages/md5-js/package.json index 443ead4ec2d5..9091ff38ebf2 100644 --- a/packages/md5-js/package.json +++ b/packages/md5-js/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/md5-js/tsconfig.cjs.json b/packages/md5-js/tsconfig.cjs.json index b506c46ef4b0..62308553d940 100644 --- a/packages/md5-js/tsconfig.cjs.json +++ b/packages/md5-js/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/md5-js/tsconfig.es.json b/packages/md5-js/tsconfig.es.json index 69ab893d1b7a..620c3d74b83e 100644 --- a/packages/md5-js/tsconfig.es.json +++ b/packages/md5-js/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/md5-js/tsconfig.types.json b/packages/md5-js/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/md5-js/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-apply-body-checksum/package.json b/packages/middleware-apply-body-checksum/package.json index ecd58e7f304d..c139c3e57913 100644 --- a/packages/middleware-apply-body-checksum/package.json +++ b/packages/middleware-apply-body-checksum/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --coverage" }, diff --git a/packages/middleware-apply-body-checksum/tsconfig.cjs.json b/packages/middleware-apply-body-checksum/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-apply-body-checksum/tsconfig.cjs.json +++ b/packages/middleware-apply-body-checksum/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-apply-body-checksum/tsconfig.es.json b/packages/middleware-apply-body-checksum/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-apply-body-checksum/tsconfig.es.json +++ b/packages/middleware-apply-body-checksum/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-apply-body-checksum/tsconfig.types.json b/packages/middleware-apply-body-checksum/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-apply-body-checksum/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-bucket-endpoint/package.json b/packages/middleware-bucket-endpoint/package.json index 6d17bf318455..086932b23db0 100644 --- a/packages/middleware-bucket-endpoint/package.json +++ b/packages/middleware-bucket-endpoint/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-bucket-endpoint/tsconfig.cjs.json b/packages/middleware-bucket-endpoint/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-bucket-endpoint/tsconfig.cjs.json +++ b/packages/middleware-bucket-endpoint/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-bucket-endpoint/tsconfig.es.json b/packages/middleware-bucket-endpoint/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-bucket-endpoint/tsconfig.es.json +++ b/packages/middleware-bucket-endpoint/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-bucket-endpoint/tsconfig.types.json b/packages/middleware-bucket-endpoint/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-bucket-endpoint/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-content-length/package.json b/packages/middleware-content-length/package.json index 3908640f5472..276dd0328278 100644 --- a/packages/middleware-content-length/package.json +++ b/packages/middleware-content-length/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-content-length/tsconfig.cjs.json b/packages/middleware-content-length/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-content-length/tsconfig.cjs.json +++ b/packages/middleware-content-length/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-content-length/tsconfig.es.json b/packages/middleware-content-length/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-content-length/tsconfig.es.json +++ b/packages/middleware-content-length/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-content-length/tsconfig.types.json b/packages/middleware-content-length/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-content-length/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-endpoint-discovery/package.json b/packages/middleware-endpoint-discovery/package.json index 470ccd42782a..291efb85aaad 100644 --- a/packages/middleware-endpoint-discovery/package.json +++ b/packages/middleware-endpoint-discovery/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-endpoint-discovery/tsconfig.cjs.json b/packages/middleware-endpoint-discovery/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-endpoint-discovery/tsconfig.cjs.json +++ b/packages/middleware-endpoint-discovery/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-endpoint-discovery/tsconfig.es.json b/packages/middleware-endpoint-discovery/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-endpoint-discovery/tsconfig.es.json +++ b/packages/middleware-endpoint-discovery/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-endpoint-discovery/tsconfig.types.json b/packages/middleware-endpoint-discovery/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-endpoint-discovery/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-eventstream/package.json b/packages/middleware-eventstream/package.json index f0b040732b19..eb3c9994cc20 100644 --- a/packages/middleware-eventstream/package.json +++ b/packages/middleware-eventstream/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-eventstream/tsconfig.cjs.json b/packages/middleware-eventstream/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-eventstream/tsconfig.cjs.json +++ b/packages/middleware-eventstream/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-eventstream/tsconfig.es.json b/packages/middleware-eventstream/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-eventstream/tsconfig.es.json +++ b/packages/middleware-eventstream/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-eventstream/tsconfig.types.json b/packages/middleware-eventstream/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-eventstream/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-expect-continue/package.json b/packages/middleware-expect-continue/package.json index e2570ccef1de..48c052433cea 100644 --- a/packages/middleware-expect-continue/package.json +++ b/packages/middleware-expect-continue/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-expect-continue/tsconfig.cjs.json b/packages/middleware-expect-continue/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-expect-continue/tsconfig.cjs.json +++ b/packages/middleware-expect-continue/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-expect-continue/tsconfig.es.json b/packages/middleware-expect-continue/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-expect-continue/tsconfig.es.json +++ b/packages/middleware-expect-continue/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-expect-continue/tsconfig.types.json b/packages/middleware-expect-continue/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-expect-continue/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-header-default/package.json b/packages/middleware-header-default/package.json index 0eea76303e45..eb5d15765236 100644 --- a/packages/middleware-header-default/package.json +++ b/packages/middleware-header-default/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-header-default/tsconfig.cjs.json b/packages/middleware-header-default/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-header-default/tsconfig.cjs.json +++ b/packages/middleware-header-default/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-header-default/tsconfig.es.json b/packages/middleware-header-default/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-header-default/tsconfig.es.json +++ b/packages/middleware-header-default/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-header-default/tsconfig.types.json b/packages/middleware-header-default/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-header-default/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-host-header/package.json b/packages/middleware-host-header/package.json index 63c8165661b6..260ba8e66d19 100644 --- a/packages/middleware-host-header/package.json +++ b/packages/middleware-host-header/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-host-header/tsconfig.cjs.json b/packages/middleware-host-header/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-host-header/tsconfig.cjs.json +++ b/packages/middleware-host-header/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-host-header/tsconfig.es.json b/packages/middleware-host-header/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-host-header/tsconfig.es.json +++ b/packages/middleware-host-header/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-host-header/tsconfig.types.json b/packages/middleware-host-header/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-host-header/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-location-constraint/package.json b/packages/middleware-location-constraint/package.json index cf5cfcf81fcb..67a82d0dca90 100644 --- a/packages/middleware-location-constraint/package.json +++ b/packages/middleware-location-constraint/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-location-constraint/tsconfig.cjs.json b/packages/middleware-location-constraint/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-location-constraint/tsconfig.cjs.json +++ b/packages/middleware-location-constraint/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-location-constraint/tsconfig.es.json b/packages/middleware-location-constraint/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-location-constraint/tsconfig.es.json +++ b/packages/middleware-location-constraint/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-location-constraint/tsconfig.types.json b/packages/middleware-location-constraint/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-location-constraint/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-logger/package.json b/packages/middleware-logger/package.json index e52a2a429919..148a6ea13bd5 100644 --- a/packages/middleware-logger/package.json +++ b/packages/middleware-logger/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --passWithNoTests" }, diff --git a/packages/middleware-logger/tsconfig.cjs.json b/packages/middleware-logger/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-logger/tsconfig.cjs.json +++ b/packages/middleware-logger/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-logger/tsconfig.es.json b/packages/middleware-logger/tsconfig.es.json index c5f23ee06fb2..3cee69ff6d34 100644 --- a/packages/middleware-logger/tsconfig.es.json +++ b/packages/middleware-logger/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.iterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-logger/tsconfig.types.json b/packages/middleware-logger/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-logger/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-retry/package.json b/packages/middleware-retry/package.json index 9bd7273c7548..2d8068ed7dad 100644 --- a/packages/middleware-retry/package.json +++ b/packages/middleware-retry/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-retry/tsconfig.cjs.json b/packages/middleware-retry/tsconfig.cjs.json index 1b7d34e46971..21ba811f4f11 100644 --- a/packages/middleware-retry/tsconfig.cjs.json +++ b/packages/middleware-retry/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "noUnusedLocals": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-retry/tsconfig.es.json b/packages/middleware-retry/tsconfig.es.json index 4c59a0f4c224..9f1f8c6de1f5 100644 --- a/packages/middleware-retry/tsconfig.es.json +++ b/packages/middleware-retry/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "noUnusedLocals": true, "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-retry/tsconfig.types.json b/packages/middleware-retry/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-retry/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-api-gateway/package.json b/packages/middleware-sdk-api-gateway/package.json index ac9044946557..700857895d0f 100644 --- a/packages/middleware-sdk-api-gateway/package.json +++ b/packages/middleware-sdk-api-gateway/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-api-gateway/tsconfig.cjs.json b/packages/middleware-sdk-api-gateway/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-api-gateway/tsconfig.cjs.json +++ b/packages/middleware-sdk-api-gateway/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-api-gateway/tsconfig.es.json b/packages/middleware-sdk-api-gateway/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-api-gateway/tsconfig.es.json +++ b/packages/middleware-sdk-api-gateway/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-api-gateway/tsconfig.types.json b/packages/middleware-sdk-api-gateway/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-api-gateway/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-ec2/package.json b/packages/middleware-sdk-ec2/package.json index 69d32817ca2e..d407229b6f9b 100644 --- a/packages/middleware-sdk-ec2/package.json +++ b/packages/middleware-sdk-ec2/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-ec2/tsconfig.cjs.json b/packages/middleware-sdk-ec2/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-ec2/tsconfig.cjs.json +++ b/packages/middleware-sdk-ec2/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-ec2/tsconfig.es.json b/packages/middleware-sdk-ec2/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-ec2/tsconfig.es.json +++ b/packages/middleware-sdk-ec2/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-ec2/tsconfig.types.json b/packages/middleware-sdk-ec2/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-ec2/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-glacier/package.json b/packages/middleware-sdk-glacier/package.json index 7138de4f54a9..17c153b183d3 100644 --- a/packages/middleware-sdk-glacier/package.json +++ b/packages/middleware-sdk-glacier/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-glacier/tsconfig.cjs.json b/packages/middleware-sdk-glacier/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-glacier/tsconfig.cjs.json +++ b/packages/middleware-sdk-glacier/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-glacier/tsconfig.es.json b/packages/middleware-sdk-glacier/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/middleware-sdk-glacier/tsconfig.es.json +++ b/packages/middleware-sdk-glacier/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-glacier/tsconfig.types.json b/packages/middleware-sdk-glacier/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-glacier/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-machinelearning/package.json b/packages/middleware-sdk-machinelearning/package.json index 24528da5eafe..07f096053974 100644 --- a/packages/middleware-sdk-machinelearning/package.json +++ b/packages/middleware-sdk-machinelearning/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-machinelearning/tsconfig.cjs.json b/packages/middleware-sdk-machinelearning/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-machinelearning/tsconfig.cjs.json +++ b/packages/middleware-sdk-machinelearning/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-machinelearning/tsconfig.es.json b/packages/middleware-sdk-machinelearning/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-machinelearning/tsconfig.es.json +++ b/packages/middleware-sdk-machinelearning/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-machinelearning/tsconfig.types.json b/packages/middleware-sdk-machinelearning/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-machinelearning/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-rds/package.json b/packages/middleware-sdk-rds/package.json index 960fa81f15ff..976c860c995d 100644 --- a/packages/middleware-sdk-rds/package.json +++ b/packages/middleware-sdk-rds/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-rds/tsconfig.cjs.json b/packages/middleware-sdk-rds/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-rds/tsconfig.cjs.json +++ b/packages/middleware-sdk-rds/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-rds/tsconfig.es.json b/packages/middleware-sdk-rds/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-rds/tsconfig.es.json +++ b/packages/middleware-sdk-rds/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-rds/tsconfig.types.json b/packages/middleware-sdk-rds/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-rds/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-route53/package.json b/packages/middleware-sdk-route53/package.json index 68aae92e13e1..341459bb9292 100644 --- a/packages/middleware-sdk-route53/package.json +++ b/packages/middleware-sdk-route53/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-route53/tsconfig.cjs.json b/packages/middleware-sdk-route53/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-route53/tsconfig.cjs.json +++ b/packages/middleware-sdk-route53/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-route53/tsconfig.es.json b/packages/middleware-sdk-route53/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-route53/tsconfig.es.json +++ b/packages/middleware-sdk-route53/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-route53/tsconfig.types.json b/packages/middleware-sdk-route53/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-route53/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-s3-control/package.json b/packages/middleware-sdk-s3-control/package.json index 74ed0f049b34..d544e7325b15 100644 --- a/packages/middleware-sdk-s3-control/package.json +++ b/packages/middleware-sdk-s3-control/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-s3-control/tsconfig.cjs.json b/packages/middleware-sdk-s3-control/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-s3-control/tsconfig.cjs.json +++ b/packages/middleware-sdk-s3-control/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-s3-control/tsconfig.es.json b/packages/middleware-sdk-s3-control/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-s3-control/tsconfig.es.json +++ b/packages/middleware-sdk-s3-control/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-s3-control/tsconfig.types.json b/packages/middleware-sdk-s3-control/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-s3-control/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-s3/package.json b/packages/middleware-sdk-s3/package.json index dfeff6deab32..8a3d5a48d942 100644 --- a/packages/middleware-sdk-s3/package.json +++ b/packages/middleware-sdk-s3/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-s3/tsconfig.cjs.json b/packages/middleware-sdk-s3/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-s3/tsconfig.cjs.json +++ b/packages/middleware-sdk-s3/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-s3/tsconfig.es.json b/packages/middleware-sdk-s3/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-s3/tsconfig.es.json +++ b/packages/middleware-sdk-s3/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-s3/tsconfig.types.json b/packages/middleware-sdk-s3/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-s3/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-sqs/package.json b/packages/middleware-sdk-sqs/package.json index ab5c9903278d..0008c0cf95eb 100644 --- a/packages/middleware-sdk-sqs/package.json +++ b/packages/middleware-sdk-sqs/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-sqs/tsconfig.cjs.json b/packages/middleware-sdk-sqs/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-sqs/tsconfig.cjs.json +++ b/packages/middleware-sdk-sqs/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-sqs/tsconfig.es.json b/packages/middleware-sdk-sqs/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-sqs/tsconfig.es.json +++ b/packages/middleware-sdk-sqs/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-sqs/tsconfig.types.json b/packages/middleware-sdk-sqs/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-sqs/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-sts/package.json b/packages/middleware-sdk-sts/package.json index b50a4598fc22..e961ab1e2708 100644 --- a/packages/middleware-sdk-sts/package.json +++ b/packages/middleware-sdk-sts/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-sdk-sts/tsconfig.cjs.json b/packages/middleware-sdk-sts/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-sdk-sts/tsconfig.cjs.json +++ b/packages/middleware-sdk-sts/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-sts/tsconfig.es.json b/packages/middleware-sdk-sts/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-sdk-sts/tsconfig.es.json +++ b/packages/middleware-sdk-sts/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-sdk-sts/tsconfig.types.json b/packages/middleware-sdk-sts/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-sts/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-sdk-transcribe-streaming/package.json b/packages/middleware-sdk-transcribe-streaming/package.json index cc9f948dada3..7335799ea7ad 100644 --- a/packages/middleware-sdk-transcribe-streaming/package.json +++ b/packages/middleware-sdk-transcribe-streaming/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "pretest": "yarn build", "test": "jest --passWithNoTests" diff --git a/packages/middleware-sdk-transcribe-streaming/tsconfig.cjs.json b/packages/middleware-sdk-transcribe-streaming/tsconfig.cjs.json index 1db0b864fe99..d755ddde2fff 100644 --- a/packages/middleware-sdk-transcribe-streaming/tsconfig.cjs.json +++ b/packages/middleware-sdk-transcribe-streaming/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-sdk-transcribe-streaming/tsconfig.es.json b/packages/middleware-sdk-transcribe-streaming/tsconfig.es.json index fec676f388bf..050bf4cc75f2 100644 --- a/packages/middleware-sdk-transcribe-streaming/tsconfig.es.json +++ b/packages/middleware-sdk-transcribe-streaming/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "DOM"], "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": ".", diff --git a/packages/middleware-sdk-transcribe-streaming/tsconfig.types.json b/packages/middleware-sdk-transcribe-streaming/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-sdk-transcribe-streaming/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-serde/package.json b/packages/middleware-serde/package.json index bc070bb561e2..d520f3bfffd6 100644 --- a/packages/middleware-serde/package.json +++ b/packages/middleware-serde/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-serde/tsconfig.cjs.json b/packages/middleware-serde/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-serde/tsconfig.cjs.json +++ b/packages/middleware-serde/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-serde/tsconfig.es.json b/packages/middleware-serde/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-serde/tsconfig.es.json +++ b/packages/middleware-serde/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-serde/tsconfig.types.json b/packages/middleware-serde/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-serde/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-signing/package.json b/packages/middleware-signing/package.json index 8875a80e01c6..45607bd79bfe 100644 --- a/packages/middleware-signing/package.json +++ b/packages/middleware-signing/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-signing/tsconfig.cjs.json b/packages/middleware-signing/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-signing/tsconfig.cjs.json +++ b/packages/middleware-signing/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-signing/tsconfig.es.json b/packages/middleware-signing/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-signing/tsconfig.es.json +++ b/packages/middleware-signing/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-signing/tsconfig.types.json b/packages/middleware-signing/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-signing/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-ssec/package.json b/packages/middleware-ssec/package.json index 77094686f204..01ffcd7a4e9c 100644 --- a/packages/middleware-ssec/package.json +++ b/packages/middleware-ssec/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-ssec/tsconfig.cjs.json b/packages/middleware-ssec/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-ssec/tsconfig.cjs.json +++ b/packages/middleware-ssec/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-ssec/tsconfig.es.json b/packages/middleware-ssec/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-ssec/tsconfig.es.json +++ b/packages/middleware-ssec/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-ssec/tsconfig.types.json b/packages/middleware-ssec/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-ssec/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-stack/package.json b/packages/middleware-stack/package.json index 1f5064674e47..0d3331316264 100644 --- a/packages/middleware-stack/package.json +++ b/packages/middleware-stack/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/middleware-stack/tsconfig.cjs.json b/packages/middleware-stack/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-stack/tsconfig.cjs.json +++ b/packages/middleware-stack/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-stack/tsconfig.es.json b/packages/middleware-stack/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/middleware-stack/tsconfig.es.json +++ b/packages/middleware-stack/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-stack/tsconfig.types.json b/packages/middleware-stack/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-stack/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/middleware-user-agent/package.json b/packages/middleware-user-agent/package.json index 6f6d68c5e8e9..b86f8b5a2eae 100644 --- a/packages/middleware-user-agent/package.json +++ b/packages/middleware-user-agent/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --passWithNoTests" }, diff --git a/packages/middleware-user-agent/tsconfig.cjs.json b/packages/middleware-user-agent/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/middleware-user-agent/tsconfig.cjs.json +++ b/packages/middleware-user-agent/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/middleware-user-agent/tsconfig.es.json b/packages/middleware-user-agent/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/middleware-user-agent/tsconfig.es.json +++ b/packages/middleware-user-agent/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/middleware-user-agent/tsconfig.types.json b/packages/middleware-user-agent/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/middleware-user-agent/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/node-config-provider/package.json b/packages/node-config-provider/package.json index ee4ed33c13ac..7fb30dca1cd3 100644 --- a/packages/node-config-provider/package.json +++ b/packages/node-config-provider/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --passWithNoTests" }, diff --git a/packages/node-config-provider/tsconfig.cjs.json b/packages/node-config-provider/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/node-config-provider/tsconfig.cjs.json +++ b/packages/node-config-provider/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/node-config-provider/tsconfig.es.json b/packages/node-config-provider/tsconfig.es.json index c5f23ee06fb2..3cee69ff6d34 100644 --- a/packages/node-config-provider/tsconfig.es.json +++ b/packages/node-config-provider/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.iterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/node-config-provider/tsconfig.types.json b/packages/node-config-provider/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/node-config-provider/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/node-http-handler/package.json b/packages/node-http-handler/package.json index 4647696d0dc9..66a6f824baab 100644 --- a/packages/node-http-handler/package.json +++ b/packages/node-http-handler/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --coverage" }, diff --git a/packages/node-http-handler/tsconfig.cjs.json b/packages/node-http-handler/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/node-http-handler/tsconfig.cjs.json +++ b/packages/node-http-handler/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/node-http-handler/tsconfig.es.json b/packages/node-http-handler/tsconfig.es.json index c5f23ee06fb2..3cee69ff6d34 100644 --- a/packages/node-http-handler/tsconfig.es.json +++ b/packages/node-http-handler/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.iterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/node-http-handler/tsconfig.types.json b/packages/node-http-handler/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/node-http-handler/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/polly-request-presigner/package.json b/packages/polly-request-presigner/package.json index e16da59c42cb..197624db9a29 100644 --- a/packages/polly-request-presigner/package.json +++ b/packages/polly-request-presigner/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/polly-request-presigner/tsconfig.cjs.json b/packages/polly-request-presigner/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/polly-request-presigner/tsconfig.cjs.json +++ b/packages/polly-request-presigner/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/polly-request-presigner/tsconfig.es.json b/packages/polly-request-presigner/tsconfig.es.json index 7af2d5ccd40c..5b020a83fc89 100644 --- a/packages/polly-request-presigner/tsconfig.es.json +++ b/packages/polly-request-presigner/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/polly-request-presigner/tsconfig.types.json b/packages/polly-request-presigner/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/polly-request-presigner/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/property-provider/package.json b/packages/property-provider/package.json index c13519efc7db..a427dd6d3ab9 100644 --- a/packages/property-provider/package.json +++ b/packages/property-provider/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/property-provider/tsconfig.cjs.json b/packages/property-provider/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/property-provider/tsconfig.cjs.json +++ b/packages/property-provider/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/property-provider/tsconfig.es.json b/packages/property-provider/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/property-provider/tsconfig.es.json +++ b/packages/property-provider/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/property-provider/tsconfig.types.json b/packages/property-provider/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/property-provider/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/protocol-http/package.json b/packages/protocol-http/package.json index 3551544c4c05..d809ca4114f4 100644 --- a/packages/protocol-http/package.json +++ b/packages/protocol-http/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/protocol-http/tsconfig.cjs.json b/packages/protocol-http/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/protocol-http/tsconfig.cjs.json +++ b/packages/protocol-http/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/protocol-http/tsconfig.es.json b/packages/protocol-http/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/protocol-http/tsconfig.es.json +++ b/packages/protocol-http/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/protocol-http/tsconfig.types.json b/packages/protocol-http/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/protocol-http/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/querystring-builder/package.json b/packages/querystring-builder/package.json index 1f341ddc19bc..04f301185dfa 100644 --- a/packages/querystring-builder/package.json +++ b/packages/querystring-builder/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/querystring-builder/tsconfig.cjs.json b/packages/querystring-builder/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/querystring-builder/tsconfig.cjs.json +++ b/packages/querystring-builder/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/querystring-builder/tsconfig.es.json b/packages/querystring-builder/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/querystring-builder/tsconfig.es.json +++ b/packages/querystring-builder/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/querystring-builder/tsconfig.types.json b/packages/querystring-builder/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/querystring-builder/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/querystring-parser/package.json b/packages/querystring-parser/package.json index df3afd9c1fad..aac6b0ce52e9 100644 --- a/packages/querystring-parser/package.json +++ b/packages/querystring-parser/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/querystring-parser/tsconfig.cjs.json b/packages/querystring-parser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/querystring-parser/tsconfig.cjs.json +++ b/packages/querystring-parser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/querystring-parser/tsconfig.es.json b/packages/querystring-parser/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/querystring-parser/tsconfig.es.json +++ b/packages/querystring-parser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/querystring-parser/tsconfig.types.json b/packages/querystring-parser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/querystring-parser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/s3-presigned-post/package.json b/packages/s3-presigned-post/package.json index a0f7061b2eca..fb9fad6a8590 100644 --- a/packages/s3-presigned-post/package.json +++ b/packages/s3-presigned-post/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/s3-presigned-post/tsconfig.cjs.json b/packages/s3-presigned-post/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/s3-presigned-post/tsconfig.cjs.json +++ b/packages/s3-presigned-post/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/s3-presigned-post/tsconfig.es.json b/packages/s3-presigned-post/tsconfig.es.json index 7af2d5ccd40c..5b020a83fc89 100644 --- a/packages/s3-presigned-post/tsconfig.es.json +++ b/packages/s3-presigned-post/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/s3-presigned-post/tsconfig.types.json b/packages/s3-presigned-post/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/s3-presigned-post/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/s3-request-presigner/package.json b/packages/s3-request-presigner/package.json index 36ca754a16ef..48017110242c 100644 --- a/packages/s3-request-presigner/package.json +++ b/packages/s3-request-presigner/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/s3-request-presigner/tsconfig.cjs.json b/packages/s3-request-presigner/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/s3-request-presigner/tsconfig.cjs.json +++ b/packages/s3-request-presigner/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/s3-request-presigner/tsconfig.es.json b/packages/s3-request-presigner/tsconfig.es.json index 7af2d5ccd40c..5b020a83fc89 100644 --- a/packages/s3-request-presigner/tsconfig.es.json +++ b/packages/s3-request-presigner/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/s3-request-presigner/tsconfig.types.json b/packages/s3-request-presigner/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/s3-request-presigner/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/service-error-classification/package.json b/packages/service-error-classification/package.json index f79ef88d0c73..8b1c6e9096a6 100644 --- a/packages/service-error-classification/package.json +++ b/packages/service-error-classification/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/service-error-classification/tsconfig.cjs.json b/packages/service-error-classification/tsconfig.cjs.json index 1b7d34e46971..21ba811f4f11 100644 --- a/packages/service-error-classification/tsconfig.cjs.json +++ b/packages/service-error-classification/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "noUnusedLocals": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/service-error-classification/tsconfig.es.json b/packages/service-error-classification/tsconfig.es.json index 328b6a869762..d76ac9a7da9c 100644 --- a/packages/service-error-classification/tsconfig.es.json +++ b/packages/service-error-classification/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "noUnusedLocals": true, "lib": ["es5", "es2015.collection", "es2015.iterable"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/service-error-classification/tsconfig.types.json b/packages/service-error-classification/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/service-error-classification/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/sha256-tree-hash/package.json b/packages/sha256-tree-hash/package.json index 88f43d1a8f69..20ecb2af787c 100644 --- a/packages/sha256-tree-hash/package.json +++ b/packages/sha256-tree-hash/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/sha256-tree-hash/tsconfig.cjs.json b/packages/sha256-tree-hash/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/sha256-tree-hash/tsconfig.cjs.json +++ b/packages/sha256-tree-hash/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/sha256-tree-hash/tsconfig.es.json b/packages/sha256-tree-hash/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/sha256-tree-hash/tsconfig.es.json +++ b/packages/sha256-tree-hash/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/sha256-tree-hash/tsconfig.types.json b/packages/sha256-tree-hash/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/sha256-tree-hash/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/shared-ini-file-loader/package.json b/packages/shared-ini-file-loader/package.json index d67854fcca5c..594b1b4fc432 100644 --- a/packages/shared-ini-file-loader/package.json +++ b/packages/shared-ini-file-loader/package.json @@ -13,7 +13,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/shared-ini-file-loader/tsconfig.cjs.json b/packages/shared-ini-file-loader/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/shared-ini-file-loader/tsconfig.cjs.json +++ b/packages/shared-ini-file-loader/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/shared-ini-file-loader/tsconfig.es.json b/packages/shared-ini-file-loader/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/shared-ini-file-loader/tsconfig.es.json +++ b/packages/shared-ini-file-loader/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/shared-ini-file-loader/tsconfig.types.json b/packages/shared-ini-file-loader/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/shared-ini-file-loader/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/signature-v4-crt/package.json b/packages/signature-v4-crt/package.json index bc5f6ff4072e..a54ff6ee4783 100644 --- a/packages/signature-v4-crt/package.json +++ b/packages/signature-v4-crt/package.json @@ -8,7 +8,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --coverage" }, diff --git a/packages/signature-v4-crt/tsconfig.cjs.json b/packages/signature-v4-crt/tsconfig.cjs.json index 2ac63587c54b..a71e526f9eab 100644 --- a/packages/signature-v4-crt/tsconfig.cjs.json +++ b/packages/signature-v4-crt/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "noUnusedLocals": true, diff --git a/packages/signature-v4-crt/tsconfig.es.json b/packages/signature-v4-crt/tsconfig.es.json index 7d0cab3b0ca1..3715cdc442fe 100644 --- a/packages/signature-v4-crt/tsconfig.es.json +++ b/packages/signature-v4-crt/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "noUnusedLocals": true, diff --git a/packages/signature-v4-crt/tsconfig.types.json b/packages/signature-v4-crt/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/signature-v4-crt/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/signature-v4/package.json b/packages/signature-v4/package.json index 2a465bb95351..ade8838361c4 100644 --- a/packages/signature-v4/package.json +++ b/packages/signature-v4/package.json @@ -8,7 +8,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "pretest": "yarn build", "test": "jest --coverage" diff --git a/packages/signature-v4/tsconfig.cjs.json b/packages/signature-v4/tsconfig.cjs.json index 1db0b864fe99..d755ddde2fff 100644 --- a/packages/signature-v4/tsconfig.cjs.json +++ b/packages/signature-v4/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/signature-v4/tsconfig.es.json b/packages/signature-v4/tsconfig.es.json index 7d0cab3b0ca1..3715cdc442fe 100644 --- a/packages/signature-v4/tsconfig.es.json +++ b/packages/signature-v4/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "stripInternal": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "noUnusedLocals": true, diff --git a/packages/signature-v4/tsconfig.types.json b/packages/signature-v4/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/signature-v4/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/smithy-client/package.json b/packages/smithy-client/package.json index 2242b772159a..6ce20b4aaf03 100644 --- a/packages/smithy-client/package.json +++ b/packages/smithy-client/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest --passWithNoTests" }, diff --git a/packages/smithy-client/tsconfig.cjs.json b/packages/smithy-client/tsconfig.cjs.json index 1b7d34e46971..21ba811f4f11 100644 --- a/packages/smithy-client/tsconfig.cjs.json +++ b/packages/smithy-client/tsconfig.cjs.json @@ -1,7 +1,6 @@ { "compilerOptions": { "noUnusedLocals": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/smithy-client/tsconfig.es.json b/packages/smithy-client/tsconfig.es.json index e7eb626136d6..e7e7d669b2ac 100644 --- a/packages/smithy-client/tsconfig.es.json +++ b/packages/smithy-client/tsconfig.es.json @@ -2,7 +2,6 @@ "compilerOptions": { "noUnusedLocals": true, "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/smithy-client/tsconfig.types.json b/packages/smithy-client/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/smithy-client/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/types/package.json b/packages/types/package.json index dfec3d065397..69a049cdda00 100755 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -11,7 +11,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "exit 0" }, diff --git a/packages/types/src/abort.d.ts b/packages/types/src/abort.d.ts new file mode 100644 index 000000000000..30a180c4df7e --- /dev/null +++ b/packages/types/src/abort.d.ts @@ -0,0 +1,42 @@ +export interface AbortHandler { + (this: AbortSignal, ev: any): any; +} +/** + * Holders of an AbortSignal object may query if the associated operation has + * been aborted and register an onabort handler. + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal + */ +export interface AbortSignal { + /** + * Whether the action represented by this signal has been cancelled. + */ + readonly aborted: boolean; + /** + * A function to be invoked when the action represented by this signal has + * been cancelled. + */ + onabort: AbortHandler | null; +} +/** + * The AWS SDK uses a Controller/Signal model to allow for cooperative + * cancellation of asynchronous operations. When initiating such an operation, + * the caller can create an AbortController and then provide linked signal to + * subtasks. This allows a single source to communicate to multiple consumers + * that an action has been aborted without dictating how that cancellation + * should be handled. + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortController + */ +export interface AbortController { + /** + * An object that reports whether the action associated with this + * {AbortController} has been cancelled. + */ + readonly signal: AbortSignal; + /** + * Declares the operation associated with this AbortController to have been + * cancelled. + */ + abort(): void; +} diff --git a/packages/types/src/client.d.ts b/packages/types/src/client.d.ts new file mode 100644 index 000000000000..0db21c491977 --- /dev/null +++ b/packages/types/src/client.d.ts @@ -0,0 +1,34 @@ +import { Command } from "./command"; +import { MiddlewareStack } from "./middleware"; +import { MetadataBearer } from "./response"; +/** + * function definition for different overrides of client's 'send' function. + */ +interface InvokeFunction { + ( + command: Command, + options?: any + ): Promise; + ( + command: Command, + options: any, + cb: (err: any, data?: OutputType) => void + ): void; + ( + command: Command, + options?: any, + cb?: (err: any, data?: OutputType) => void + ): Promise | void; +} +/** + * A general interface for service clients, idempotent to browser or node clients + * This type corresponds to SmithyClient(https://github.com/aws/aws-sdk-js-v3/blob/main/packages/smithy-client/src/client.ts). + * It's provided for using without importing the SmithyClient class. + */ +export interface Client { + readonly config: ResolvedClientConfiguration; + middlewareStack: MiddlewareStack; + send: InvokeFunction; + destroy: () => void; +} +export {}; diff --git a/packages/types/src/command.d.ts b/packages/types/src/command.d.ts new file mode 100644 index 000000000000..67a2a687988b --- /dev/null +++ b/packages/types/src/command.d.ts @@ -0,0 +1,17 @@ +import { Handler, MiddlewareStack } from "./middleware"; +import { MetadataBearer } from "./response"; +export interface Command< + ClientInput extends object, + InputType extends ClientInput, + ClientOutput extends MetadataBearer, + OutputType extends ClientOutput, + ResolvedConfiguration +> { + readonly input: InputType; + readonly middlewareStack: MiddlewareStack; + resolveMiddleware( + stack: MiddlewareStack, + configuration: ResolvedConfiguration, + options: any + ): Handler; +} diff --git a/packages/types/src/credentials.d.ts b/packages/types/src/credentials.d.ts new file mode 100644 index 000000000000..b1154b7a8815 --- /dev/null +++ b/packages/types/src/credentials.d.ts @@ -0,0 +1,24 @@ +import { Provider } from "./util"; +/** + * An object representing temporary or permanent AWS credentials. + */ +export interface Credentials { + /** + * AWS access key ID + */ + readonly accessKeyId: string; + /** + * AWS secret access key + */ + readonly secretAccessKey: string; + /** + * A security or session token to use with these credentials. Usually + * present for temporary credentials. + */ + readonly sessionToken?: string; + /** + * A {Date} when these credentials will no longer be accepted. + */ + readonly expiration?: Date; +} +export declare type CredentialProvider = Provider; diff --git a/packages/types/src/crypto.d.ts b/packages/types/src/crypto.d.ts new file mode 100644 index 000000000000..8177a41001a2 --- /dev/null +++ b/packages/types/src/crypto.d.ts @@ -0,0 +1,45 @@ +export declare type SourceData = string | ArrayBuffer | ArrayBufferView; +/** + * An object that provides a hash of data provided in chunks to `update`. The + * hash may be performed incrementally as chunks are received or all at once + * when the hash is finalized, depending on the underlying implementation. + */ +export interface Hash { + /** + * Adds a chunk of data to the hash. If a buffer is provided, the `encoding` + * argument will be ignored. If a string is provided without a specified + * encoding, implementations must assume UTF-8 encoding. + * + * Not all encodings are supported on all platforms, though all must support + * UTF-8. + */ + update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; + /** + * Finalizes the hash and provides a promise that will be fulfilled with the + * raw bytes of the calculated hash. + */ + digest(): Promise; +} +/** + * A constructor for a hash that may be used to calculate an HMAC. Implementing + * classes should not directly hold the provided key in memory beyond the + * lexical scope of the constructor. + */ +export interface HashConstructor { + new (secret?: SourceData): Hash; +} +/** + * A function that calculates the hash of a data stream. Determining the hash + * will consume the stream, so only replayable streams should be provided to an + * implementation of this interface. + */ +export interface StreamHasher { + (hashCtor: HashConstructor, stream: StreamType): Promise; +} +/** + * A function that returns a promise fulfilled with bytes from a + * cryptographically secure pseudorandom number generator. + */ +export interface randomValues { + (byteLength: number): Promise; +} diff --git a/packages/types/src/eventStream.d.ts b/packages/types/src/eventStream.d.ts new file mode 100644 index 000000000000..5d790265d1a5 --- /dev/null +++ b/packages/types/src/eventStream.d.ts @@ -0,0 +1,100 @@ +import { HttpRequest } from "./http"; +import { + FinalizeHandler, + FinalizeHandlerArguments, + FinalizeHandlerOutput, + HandlerExecutionContext, +} from "./middleware"; +import { MetadataBearer } from "./response"; +/** + * An event stream message. The headers and body properties will always be + * defined, with empty headers represented as an object with no keys and an + * empty body represented as a zero-length Uint8Array. + */ +export interface Message { + headers: MessageHeaders; + body: Uint8Array; +} +export interface MessageHeaders { + [name: string]: MessageHeaderValue; +} +export interface BooleanHeaderValue { + type: "boolean"; + value: boolean; +} +export interface ByteHeaderValue { + type: "byte"; + value: number; +} +export interface ShortHeaderValue { + type: "short"; + value: number; +} +export interface IntegerHeaderValue { + type: "integer"; + value: number; +} +export interface LongHeaderValue { + type: "long"; + value: Int64; +} +export interface BinaryHeaderValue { + type: "binary"; + value: Uint8Array; +} +export interface StringHeaderValue { + type: "string"; + value: string; +} +export interface TimestampHeaderValue { + type: "timestamp"; + value: Date; +} +export interface UuidHeaderValue { + type: "uuid"; + value: string; +} +export declare type MessageHeaderValue = + | BooleanHeaderValue + | ByteHeaderValue + | ShortHeaderValue + | IntegerHeaderValue + | LongHeaderValue + | BinaryHeaderValue + | StringHeaderValue + | TimestampHeaderValue + | UuidHeaderValue; +export interface Int64 { + readonly bytes: Uint8Array; + valueOf: () => number; + toString: () => string; +} +/** + * Util functions for serializing or deserializing event stream + */ +export interface EventStreamSerdeContext { + eventStreamMarshaller: EventStreamMarshaller; +} +export interface EventStreamMarshaller { + deserialize: (body: any, deserializer: (input: { [event: string]: Message }) => any) => AsyncIterable; + serialize: (input: AsyncIterable, serializer: (event: any) => Message) => any; +} +export interface EventStreamRequestSigner { + sign(request: HttpRequest): Promise; +} +export interface EventStreamPayloadHandler { + handle: ( + next: FinalizeHandler, + args: FinalizeHandlerArguments, + context?: HandlerExecutionContext + ) => Promise>; +} +export interface EventStreamPayloadHandlerProvider { + (options: any): EventStreamPayloadHandler; +} +export interface EventStreamSerdeProvider { + (options: any): EventStreamMarshaller; +} +export interface EventStreamSignerProvider { + (options: any): EventStreamRequestSigner; +} diff --git a/packages/types/src/http.d.ts b/packages/types/src/http.d.ts new file mode 100644 index 000000000000..64f49dcb8c5d --- /dev/null +++ b/packages/types/src/http.d.ts @@ -0,0 +1,92 @@ +import { AbortSignal } from "./abort"; +/** + * A collection of key/value pairs with case-insensitive keys. + */ +export interface Headers extends Map { + /** + * Returns a new instance of Headers with the specified header set to the + * provided value. Does not modify the original Headers instance. + * + * @param headerName The name of the header to add or overwrite + * @param headerValue The value to which the header should be set + */ + withHeader(headerName: string, headerValue: string): Headers; + /** + * Returns a new instance of Headers without the specified header. Does not + * modify the original Headers instance. + * + * @param headerName The name of the header to remove + */ + withoutHeader(headerName: string): Headers; +} +/** + * A mapping of header names to string values. Multiple values for the same + * header should be represented as a single string with values separated by + * `, `. + * + * Keys should be considered case insensitive, even if this is not enforced by a + * particular implementation. For example, given the following HeaderBag, where + * keys differ only in case: + * + * { + * 'x-amz-date': '2000-01-01T00:00:00Z', + * 'X-Amz-Date': '2001-01-01T00:00:00Z' + * } + * + * The SDK may at any point during processing remove one of the object + * properties in favor of the other. The headers may or may not be combined, and + * the SDK will not deterministically select which header candidate to use. + */ +export interface HeaderBag { + [key: string]: string; +} +/** + * Represents an HTTP message with headers and an optional static or streaming + * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream; + */ +export interface HttpMessage { + headers: HeaderBag; + body?: any; +} +/** + * A mapping of query parameter names to strings or arrays of strings, with the + * second being used when a parameter contains a list of values. Value can be set + * to null when query is not in key-value pairs shape + */ +export interface QueryParameterBag { + [key: string]: string | Array | null; +} +export interface Endpoint { + protocol: string; + hostname: string; + port?: number; + path: string; + query?: QueryParameterBag; +} +/** + * Interface an HTTP request class. Contains + * addressing information in addition to standard message properties. + */ +export interface HttpRequest extends HttpMessage, Endpoint { + method: string; +} +/** + * Represents an HTTP message as received in reply to a request. Contains a + * numeric status code in addition to standard message properties. + */ +export interface HttpResponse extends HttpMessage { + statusCode: number; +} +/** + * Represents HTTP message whose body has been resolved to a string. This is + * used in parsing http message. + */ +export interface ResolvedHttpResponse extends HttpResponse { + body: string; +} +/** + * Represents the options that may be passed to an Http Handler. + */ +export interface HttpHandlerOptions { + abortSignal?: AbortSignal; +} diff --git a/packages/types/src/index.d.ts b/packages/types/src/index.d.ts new file mode 100644 index 000000000000..8e60c76fdc21 --- /dev/null +++ b/packages/types/src/index.d.ts @@ -0,0 +1,17 @@ +export * from "./abort"; +export * from "./client"; +export * from "./command"; +export * from "./credentials"; +export * from "./crypto"; +export * from "./eventStream"; +export * from "./http"; +export * from "./logger"; +export * from "./pagination"; +export * from "./serde"; +export * from "./middleware"; +export * from "./response"; +export * from "./shapes"; +export * from "./signature"; +export * from "./transfer"; +export * from "./util"; +export * from "./waiter"; diff --git a/packages/types/src/logger.d.ts b/packages/types/src/logger.d.ts new file mode 100644 index 000000000000..618f5e345d86 --- /dev/null +++ b/packages/types/src/logger.d.ts @@ -0,0 +1,26 @@ +/** + * A list of logger's log level. These levels are sorted in + * order of increasing severity. Each log level includes itself and all + * the levels behind itself. + * + * @example new Logger({logLevel: 'warn'}) will print all the warn and error + * message. + */ +export declare type LogLevel = "all" | "log" | "info" | "warn" | "error" | "off"; +/** + * An object consumed by Logger constructor to initiate a logger object. + */ +export interface LoggerOptions { + logger?: Logger; + logLevel?: LogLevel; +} +/** + * Represents a logger object that is available in HandlerExecutionContext + * throughout the middleware stack. + */ +export interface Logger { + debug(content: object): void; + info(content: object): void; + warn(content: object): void; + error(content: object): void; +} diff --git a/packages/types/src/middleware.d.ts b/packages/types/src/middleware.d.ts new file mode 100644 index 000000000000..b33fbc53c485 --- /dev/null +++ b/packages/types/src/middleware.d.ts @@ -0,0 +1,346 @@ +import { Logger } from "./logger"; +import { UserAgent } from "./util"; +export interface InitializeHandlerArguments { + /** + * User input to a command. Reflects the userland representation of the + * union of data types the command can effectively handle. + */ + input: Input; +} +export interface InitializeHandlerOutput extends DeserializeHandlerOutput { + output: Output; +} +export interface SerializeHandlerArguments extends InitializeHandlerArguments { + /** + * The user input serialized as a request object. The request object is unknown, + * so you cannot modify it directly. When work with request, you need to guard its + * type to e.g. HttpRequest with 'instanceof' operand + * + * During the build phase of the execution of a middleware stack, a built + * request may or may not be available. + */ + request?: unknown; +} +export interface SerializeHandlerOutput extends InitializeHandlerOutput {} +export interface BuildHandlerArguments extends FinalizeHandlerArguments {} +export interface BuildHandlerOutput extends InitializeHandlerOutput {} +export interface FinalizeHandlerArguments extends SerializeHandlerArguments { + /** + * The user input serialized as a request. + */ + request: unknown; +} +export interface FinalizeHandlerOutput extends InitializeHandlerOutput {} +export interface DeserializeHandlerArguments extends FinalizeHandlerArguments {} +export interface DeserializeHandlerOutput { + /** + * The raw response object from runtime is deserialized to structured output object. + * The response object is unknown so you cannot modify it directly. When work with + * response, you need to guard its type to e.g. HttpResponse with 'instanceof' operand. + * + * During the deserialize phase of the execution of a middleware stack, a deserialized + * response may or may not be available + */ + response: unknown; + output?: Output; +} +export interface InitializeHandler { + /** + * Asynchronously converts an input object into an output object. + * + * @param args An object containing a input to the command as well as any + * associated or previously generated execution artifacts. + */ + (args: InitializeHandlerArguments): Promise>; +} +export declare type Handler = InitializeHandler; +export interface SerializeHandler { + /** + * Asynchronously converts an input object into an output object. + * + * @param args An object containing a input to the command as well as any + * associated or previously generated execution artifacts. + */ + (args: SerializeHandlerArguments): Promise>; +} +export interface FinalizeHandler { + /** + * Asynchronously converts an input object into an output object. + * + * @param args An object containing a input to the command as well as any + * associated or previously generated execution artifacts. + */ + (args: FinalizeHandlerArguments): Promise>; +} +export interface BuildHandler { + (args: BuildHandlerArguments): Promise>; +} +export interface DeserializeHandler { + (args: DeserializeHandlerArguments): Promise>; +} +/** + * A factory function that creates functions implementing the {Handler} + * interface. + */ +export interface InitializeMiddleware { + /** + * @param next The handler to invoke after this middleware has operated on + * the user input and before this middleware operates on the output. + * + * @param context Invariant data and functions for use by the handler. + */ + (next: InitializeHandler, context: HandlerExecutionContext): InitializeHandler; +} +/** + * A factory function that creates functions implementing the {BuildHandler} + * interface. + */ +export interface SerializeMiddleware { + /** + * @param next The handler to invoke after this middleware has operated on + * the user input and before this middleware operates on the output. + * + * @param context Invariant data and functions for use by the handler. + */ + (next: SerializeHandler, context: HandlerExecutionContext): SerializeHandler; +} +/** + * A factory function that creates functions implementing the {FinalizeHandler} + * interface. + */ +export interface FinalizeRequestMiddleware { + /** + * @param next The handler to invoke after this middleware has operated on + * the user input and before this middleware operates on the output. + * + * @param context Invariant data and functions for use by the handler. + */ + (next: FinalizeHandler, context: HandlerExecutionContext): FinalizeHandler; +} +export interface BuildMiddleware { + (next: BuildHandler, context: HandlerExecutionContext): BuildHandler; +} +export interface DeserializeMiddleware { + (next: DeserializeHandler, context: HandlerExecutionContext): DeserializeHandler; +} +export declare type MiddlewareType = + | InitializeMiddleware + | SerializeMiddleware + | BuildMiddleware + | FinalizeRequestMiddleware + | DeserializeMiddleware; +/** + * A factory function that creates the terminal handler atop which a middleware + * stack sits. + */ +export interface Terminalware { + (context: HandlerExecutionContext): DeserializeHandler; +} +export declare type Step = "initialize" | "serialize" | "build" | "finalizeRequest" | "deserialize"; +export declare type Priority = "high" | "normal" | "low"; +export interface HandlerOptions { + /** + * Handlers are ordered using a "step" that describes the stage of command + * execution at which the handler will be executed. The available steps are: + * + * - initialize: The input is being prepared. Examples of typical + * initialization tasks include injecting default options computing + * derived parameters. + * - serialize: The input is complete and ready to be serialized. Examples + * of typical serialization tasks include input validation and building + * an HTTP request from user input. + * - build: The input has been serialized into an HTTP request, but that + * request may require further modification. Any request alterations + * will be applied to all retries. Examples of typical build tasks + * include injecting HTTP headers that describe a stable aspect of the + * request, such as `Content-Length` or a body checksum. + * - finalizeRequest: The request is being prepared to be sent over the wire. The + * request in this stage should already be semantically complete and + * should therefore only be altered as match the recipient's + * expectations. Examples of typical finalization tasks include request + * signing and injecting hop-by-hop headers. + * - deserialize: The response has arrived, the middleware here will deserialize + * the raw response object to structured response + * + * Unlike initialization and build handlers, which are executed once + * per operation execution, finalization and deserialize handlers will be + * executed foreach HTTP request sent. + * + * @default 'initialize' + */ + step?: Step; + /** + * A list of strings to any that identify the general purpose or important + * characteristics of a given handler. + */ + tags?: Array; + /** + * A unique name to refer to a middleware + */ + name?: string; + /** + * A flag to override the existing middleware with the same name. Without + * setting it, adding middleware with duplicated name will throw an exception. + * @internal + */ + override?: boolean; +} +export interface AbsoluteLocation { + /** + * By default middleware will be added to individual step in un-guaranteed order. + * In the case that + * + * @default 'normal' + */ + priority?: Priority; +} +export declare type Relation = "before" | "after"; +export interface RelativeLocation { + /** + * Specify the relation to be before or after a know middleware. + */ + relation: Relation; + /** + * A known middleware name to indicate inserting middleware's location. + */ + toMiddleware: string; +} +export declare type RelativeMiddlewareOptions = RelativeLocation & Omit; +export interface InitializeHandlerOptions extends HandlerOptions { + step?: "initialize"; +} +export interface SerializeHandlerOptions extends HandlerOptions { + step: "serialize"; +} +export interface BuildHandlerOptions extends HandlerOptions { + step: "build"; +} +export interface FinalizeRequestHandlerOptions extends HandlerOptions { + step: "finalizeRequest"; +} +export interface DeserializeHandlerOptions extends HandlerOptions { + step: "deserialize"; +} +/** + * A stack storing middleware. It can be resolved into a handler. It supports 2 + * approaches for adding middleware: + * 1. Adding middleware to specific step with `add()`. The order of middleware + * added into same step is determined by order of adding them. If one middleware + * needs to be executed at the front of the step or at the end of step, set + * `priority` options to `high` or `low`. + * 2. Adding middleware to location relative to known middleware with `addRelativeTo()`. + * This is useful when given middleware must be executed before or after specific + * middleware(`toMiddleware`). You can add a middleware relatively to another + * middleware which also added relatively. But eventually, this relative middleware + * chain **must** be 'anchored' by a middleware that added using `add()` API + * with absolute `step` and `priority`. This mothod will throw if specified + * `toMiddleware` is not found. + */ +export interface MiddlewareStack extends Pluggable { + /** + * Add middleware to the stack to be executed during the "initialize" step, + * optionally specifying a priority, tags and name + */ + add(middleware: InitializeMiddleware, options?: InitializeHandlerOptions & AbsoluteLocation): void; + /** + * Add middleware to the stack to be executed during the "serialize" step, + * optionally specifying a priority, tags and name + */ + add(middleware: SerializeMiddleware, options: SerializeHandlerOptions & AbsoluteLocation): void; + /** + * Add middleware to the stack to be executed during the "build" step, + * optionally specifying a priority, tags and name + */ + add(middleware: BuildMiddleware, options: BuildHandlerOptions & AbsoluteLocation): void; + /** + * Add middleware to the stack to be executed during the "finalizeRequest" step, + * optionally specifying a priority, tags and name + */ + add( + middleware: FinalizeRequestMiddleware, + options: FinalizeRequestHandlerOptions & AbsoluteLocation + ): void; + /** + * Add middleware to the stack to be executed during the "deserialize" step, + * optionally specifying a priority, tags and name + */ + add(middleware: DeserializeMiddleware, options: DeserializeHandlerOptions & AbsoluteLocation): void; + /** + * Add middleware to a stack position before or after a known middleware,optionally + * specifying name and tags. + */ + addRelativeTo(middleware: MiddlewareType, options: RelativeMiddlewareOptions): void; + /** + * Apply a customization function to mutate the middleware stack, often + * used for customizations that requires mutating multiple middleware. + */ + use(pluggable: Pluggable): void; + /** + * Create a shallow clone of this stack. Step bindings and handler priorities + * and tags are preserved in the copy. + */ + clone(): MiddlewareStack; + /** + * Removes middleware from the stack. + * + * If a string is provided, it will be treated as middleware name. If a middleware + * is inserted with the given name, it will be removed. + * + * If a middleware class is provided, all usages thereof will be removed. + */ + remove(toRemove: MiddlewareType | string): boolean; + /** + * Removes middleware that contains given tag + * + * Multiple middleware will potentially be removed + */ + removeByTag(toRemove: string): boolean; + /** + * Create a stack containing the middlewares in this stack as well as the + * middlewares in the `from` stack. Neither source is modified, and step + * bindings and handler priorities and tags are preserved in the copy. + */ + concat( + from: MiddlewareStack + ): MiddlewareStack; + /** + * Builds a single handler function from zero or more middleware classes and + * a core handler. The core handler is meant to send command objects to AWS + * services and return promises that will resolve with the operation result + * or be rejected with an error. + * + * When a composed handler is invoked, the arguments will pass through all + * middleware in a defined order, and the return from the innermost handler + * will pass through all middleware in the reverse of that order. + */ + resolve( + handler: DeserializeHandler, + context: HandlerExecutionContext + ): InitializeHandler; +} +/** + * Data and helper objects that are not expected to change from one execution of + * a composed handler to another. + */ +export interface HandlerExecutionContext { + /** + * A logger that may be invoked by any handler during execution of an + * operation. + */ + logger?: Logger; + /** + * Additional user agent that inferred by middleware. It can be used to save + * the internal user agent sections without overriding the `customUserAgent` + * config in clients. + */ + userAgent?: UserAgent; + [key: string]: any; +} +export interface Pluggable { + /** + * A function that mutate the passed in middleware stack. Functions implementing + * this interface can add, remove, modify existing middleware stack from clients + * or commands + */ + applyToStack: (stack: MiddlewareStack) => void; +} diff --git a/packages/types/src/pagination.d.ts b/packages/types/src/pagination.d.ts new file mode 100644 index 000000000000..0529705b100e --- /dev/null +++ b/packages/types/src/pagination.d.ts @@ -0,0 +1,14 @@ +import { Client } from "./client"; +/** + * Expected type definition of a paginator. + */ +export declare type Paginator = AsyncGenerator; +/** + * Expected paginator configuration passed to an operation. Services will extend + * this interface definition and may type client further. + */ +export interface PaginationConfiguration { + client: Client; + pageSize?: number; + startingToken?: any; +} diff --git a/packages/types/src/response.d.ts b/packages/types/src/response.d.ts new file mode 100644 index 000000000000..638e3d28e049 --- /dev/null +++ b/packages/types/src/response.d.ts @@ -0,0 +1,34 @@ +export interface ResponseMetadata { + /** + * The status code of the last HTTP response received for this operation. + */ + httpStatusCode?: number; + /** + * A unique identifier for the last request sent for this operation. Often + * requested by AWS service teams to aid in debugging. + */ + requestId?: string; + /** + * A secondary identifier for the last request sent. Used for debugging. + */ + extendedRequestId?: string; + /** + * A tertiary identifier for the last request sent. Used for debugging. + */ + cfId?: string; + /** + * The number of times this operation was attempted. + */ + attempts?: number; + /** + * The total amount of time (in milliseconds) that was spent waiting between + * retry attempts. + */ + totalRetryDelay?: number; +} +export interface MetadataBearer { + /** + * Metadata pertaining to this request. + */ + $metadata: ResponseMetadata; +} diff --git a/packages/types/src/serde.d.ts b/packages/types/src/serde.d.ts new file mode 100644 index 000000000000..03b03988e81a --- /dev/null +++ b/packages/types/src/serde.d.ts @@ -0,0 +1,49 @@ +import { Endpoint } from "./http"; +import { RequestHandler } from "./transfer"; +import { Decoder, Encoder, Provider } from "./util"; +/** + * Interface for object requires an Endpoint set. + */ +export interface EndpointBearer { + endpoint: Provider; +} +export interface StreamCollector { + /** + * A function that converts a stream into an array of bytes. + * + * @param stream The low-level native stream from browser or Nodejs runtime + */ + (stream: any): Promise; +} +/** + * Request and Response serde util functions and settings for AWS services + */ +export interface SerdeContext extends EndpointBearer { + base64Encoder: Encoder; + base64Decoder: Decoder; + utf8Encoder: Encoder; + utf8Decoder: Decoder; + streamCollector: StreamCollector; + requestHandler: RequestHandler; + disableHostPrefix: boolean; +} +export interface RequestSerializer { + /** + * Converts the provided `input` into a request object + * + * @param input The user input to serialize. + * + * @param context Context containing runtime-specific util functions. + */ + (input: any, context: Context): Promise; +} +export interface ResponseDeserializer { + /** + * Converts the output of an operation into JavaScript types. + * + * @param output The HTTP response received from the service + * + * @param context context containing runtime-specific util functions. + */ + (output: ResponseType, context: Context): Promise; +} diff --git a/packages/types/src/shapes.d.ts b/packages/types/src/shapes.d.ts new file mode 100644 index 000000000000..b055ed7e95f4 --- /dev/null +++ b/packages/types/src/shapes.d.ts @@ -0,0 +1,51 @@ +import { MetadataBearer } from "./response"; +/** + * A document type represents an untyped JSON-like value. + * + * Not all protocols support document types, and the serialization format of a + * document type is protocol specific. All JSON protocols SHOULD support + * document types and they SHOULD serialize document types inline as normal + * JSON values. + */ +export declare type DocumentType = + | null + | boolean + | number + | string + | DocumentType[] + | { + [prop: string]: DocumentType; + }; +/** + * A structure shape with the error trait. + * https://awslabs.github.io/smithy/spec/core.html#retryable-trait + */ +export interface RetryableTrait { + /** + * Indicates that the error is a retryable throttling error. + */ + readonly throttling?: boolean; +} +/** + * Type that is implemented by all Smithy shapes marked with the + * error trait. + */ +export interface SmithyException { + /** + * The shape ID name of the exception. + */ + readonly name: string; + /** + * Whether the client or server are at fault. + */ + readonly $fault: "client" | "server"; + /** + * The service that encountered the exception. + */ + readonly $service?: string; + /** + * Indicates that an error MAY be retried by the client. + */ + readonly $retryable?: RetryableTrait; +} +export declare type SdkError = Error & Partial & Partial; diff --git a/packages/types/src/signature.d.ts b/packages/types/src/signature.d.ts new file mode 100644 index 000000000000..56e0eca82ee5 --- /dev/null +++ b/packages/types/src/signature.d.ts @@ -0,0 +1,100 @@ +import { HttpRequest } from "./http"; +/** + * A {Date} object, a unix (epoch) timestamp in seconds, or a string that can be + * understood by the JavaScript {Date} constructor. + */ +export declare type DateInput = number | string | Date; +export interface SigningArguments { + /** + * The date and time to be used as signature metadata. This value should be + * a Date object, a unix (epoch) timestamp, or a string that can be + * understood by the JavaScript `Date` constructor.If not supplied, the + * value returned by `new Date()` will be used. + */ + signingDate?: DateInput; + /** + * The service signing name. It will override the service name of the signer + * in current invocation + */ + signingService?: string; + /** + * The region name to sign the request. It will override the signing region of the + * signer in current invocation + */ + signingRegion?: string; +} +export interface RequestSigningArguments extends SigningArguments { + /** + * A set of strings whose members represents headers that cannot be signed. + * All headers in the provided request will have their names converted to + * lower case and then checked for existence in the unsignableHeaders set. + */ + unsignableHeaders?: Set; + /** + * A set of strings whose members represents headers that should be signed. + * Any values passed here will override those provided via unsignableHeaders, + * allowing them to be signed. + * + * All headers in the provided request will have their names converted to + * lower case before signing. + */ + signableHeaders?: Set; +} +export interface RequestPresigningArguments extends RequestSigningArguments { + /** + * The number of seconds before the presigned URL expires + */ + expiresIn?: number; + /** + * A set of strings whose representing headers that should not be hoisted + * to presigned request's query string. If not supplied, the presigner + * moves all the AWS-specific headers (starting with `x-amz-`) to the request + * query string. If supplied, these headers remain in the presigned request's + * header. + * All headers in the provided request will have their names converted to + * lower case and then checked for existence in the unhoistableHeaders set. + */ + unhoistableHeaders?: Set; +} +export interface EventSigningArguments extends SigningArguments { + priorSignature: string; +} +export interface RequestPresigner { + /** + * Signs a request for future use. + * + * The request will be valid until either the provided `expiration` time has + * passed or the underlying credentials have expired. + * + * @param requestToSign The request that should be signed. + * @param options Additional signing options. + */ + presign(requestToSign: HttpRequest, options?: RequestPresigningArguments): Promise; +} +/** + * An object that signs request objects with AWS credentials using one of the + * AWS authentication protocols. + */ +export interface RequestSigner { + /** + * Sign the provided request for immediate dispatch. + */ + sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise; +} +export interface StringSigner { + /** + * Sign the provided `stringToSign` for use outside of the context of + * request signing. Typical uses include signed policy generation. + */ + sign(stringToSign: string, options?: SigningArguments): Promise; +} +export interface FormattedEvent { + headers: Uint8Array; + payload: Uint8Array; +} +export interface EventSigner { + /** + * Sign the individual event of the event stream. + */ + sign(event: FormattedEvent, options: EventSigningArguments): Promise; +} diff --git a/packages/types/src/transfer.d.ts b/packages/types/src/transfer.d.ts new file mode 100644 index 000000000000..075712375154 --- /dev/null +++ b/packages/types/src/transfer.d.ts @@ -0,0 +1,16 @@ +export declare type RequestHandlerOutput = { + response: ResponseType; +}; +export interface RequestHandler { + /** + * metadata contains information of a handler. For example + * 'h2' refers this handler is for handling HTTP/2 requests, + * whereas 'h1' refers handling HTTP1 requests + */ + metadata?: RequestHandlerMetadata; + destroy?: () => void; + handle: (request: RequestType, handlerOptions?: HandlerOptions) => Promise>; +} +export interface RequestHandlerMetadata { + handlerProtocol: string; +} diff --git a/packages/types/src/util.d.ts b/packages/types/src/util.d.ts new file mode 100644 index 000000000000..0a1094fcc871 --- /dev/null +++ b/packages/types/src/util.d.ts @@ -0,0 +1,100 @@ +import { Endpoint } from "./http"; +import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware"; +import { MetadataBearer } from "./response"; +/** + * A function that, given a TypedArray of bytes, can produce a string + * representation thereof. + * + * @example An encoder function that converts bytes to hexadecimal + * representation would return `'deadbeef'` when given `new + * Uint8Array([0xde, 0xad, 0xbe, 0xef])`. + */ +export interface Encoder { + (input: Uint8Array): string; +} +/** + * A function that, given a string, can derive the bytes represented by that + * string. + * + * @example A decoder function that converts bytes to hexadecimal + * representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when + * given the string `'deadbeef'`. + */ +export interface Decoder { + (input: string): Uint8Array; +} +/** + * A function that, when invoked, returns a promise that will be fulfilled with + * a value of type T. + * + * @example A function that reads credentials from shared SDK configuration + * files, assuming roles and collecting MFA tokens as necessary. + */ +export interface Provider { + (): Promise; +} +/** + * A function that, given a request body, determines the + * length of the body. This is used to determine the Content-Length + * that should be sent with a request. + * + * @example A function that reads a file stream and calculates + * the size of the file. + */ +export interface BodyLengthCalculator { + (body: any): number | undefined; +} +/** + * Interface that specifies the retry behavior + */ +export interface RetryStrategy { + /** + * The retry mode describing how the retry strategy control the traffic flow. + */ + mode?: string; + /** + * the retry behavior the will invoke the next handler and handle the retry accordingly. + * This function should also update the $metadata from the response accordingly. + * @see {@link ResponseMetadata} + */ + retry: ( + next: FinalizeHandler, + args: FinalizeHandlerArguments + ) => Promise>; +} +/** + * Parses a URL in string form into an Endpoint object. + */ +export interface UrlParser { + (url: string): Endpoint; +} +/** + * Object containing regionalization information of + * AWS services. + */ +export interface RegionInfo { + hostname: string; + partition: string; + path?: string; + signingService?: string; + signingRegion?: string; +} +/** + * Function returns designated service's regionalization + * information from given region. Each service client + * comes with its regionalization provider. it serves + * to provide the default values of related configurations + */ +export interface RegionInfoProvider { + (region: string, options?: any): Promise; +} +/** + * A tuple that represents an API name and optional version + * of a library built using the AWS SDK. + */ +export declare type UserAgentPair = [name: string, version?: string]; +/** + * User agent data that to be put into the request's user + * agent. + */ +export declare type UserAgent = UserAgentPair[]; diff --git a/packages/types/src/waiter.d.ts b/packages/types/src/waiter.d.ts new file mode 100644 index 000000000000..3b7a9b0bc470 --- /dev/null +++ b/packages/types/src/waiter.d.ts @@ -0,0 +1,32 @@ +import { AbortController } from "./abort"; +export interface WaiterConfiguration { + /** + * Required service client + */ + client: Client; + /** + * The amount of time in seconds a user is willing to wait for a waiter to complete. + */ + maxWaitTime: number; + /** + * @deprecated Use abortSignal + * Abort controller. Used for ending the waiter early. + */ + abortController?: AbortController; + /** + * Abort Signal. Used for ending the waiter early. + */ + abortSignal?: AbortController["signal"]; + /** + * The minimum amount of time to delay between retries in seconds. This is the + * floor of the exponential backoff. This value defaults to service default + * if not specified. This value MUST be less than or equal to maxDelay and greater than 0. + */ + minDelay?: number; + /** + * The maximum amount of time to delay between retries in seconds. This is the + * ceiling of the exponential backoff. This value defaults to service default + * if not specified. If specified, this value MUST be greater than or equal to 1. + */ + maxDelay?: number; +} diff --git a/packages/types/tsconfig.cjs.json b/packages/types/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/types/tsconfig.cjs.json +++ b/packages/types/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/types/tsconfig.es.json b/packages/types/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/types/tsconfig.es.json +++ b/packages/types/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/types/tsconfig.types.json b/packages/types/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/types/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/url-parser/package.json b/packages/url-parser/package.json index 62f6e7413c01..a79150ee3a02 100644 --- a/packages/url-parser/package.json +++ b/packages/url-parser/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/url-parser/tsconfig.cjs.json b/packages/url-parser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/url-parser/tsconfig.cjs.json +++ b/packages/url-parser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/url-parser/tsconfig.es.json b/packages/url-parser/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/url-parser/tsconfig.es.json +++ b/packages/url-parser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/url-parser/tsconfig.types.json b/packages/url-parser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/url-parser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-arn-parser/package.json b/packages/util-arn-parser/package.json index b1f16c9da34a..8e936649d09b 100644 --- a/packages/util-arn-parser/package.json +++ b/packages/util-arn-parser/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-arn-parser/tsconfig.cjs.json b/packages/util-arn-parser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-arn-parser/tsconfig.cjs.json +++ b/packages/util-arn-parser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-arn-parser/tsconfig.es.json b/packages/util-arn-parser/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/util-arn-parser/tsconfig.es.json +++ b/packages/util-arn-parser/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-arn-parser/tsconfig.types.json b/packages/util-arn-parser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-arn-parser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-base64-browser/package.json b/packages/util-base64-browser/package.json index 9eaf59178ee4..7389159a50f7 100644 --- a/packages/util-base64-browser/package.json +++ b/packages/util-base64-browser/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-base64-browser/tsconfig.cjs.json b/packages/util-base64-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-base64-browser/tsconfig.cjs.json +++ b/packages/util-base64-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-base64-browser/tsconfig.es.json b/packages/util-base64-browser/tsconfig.es.json index 77ceda5fec16..fe84cbe7e342 100644 --- a/packages/util-base64-browser/tsconfig.es.json +++ b/packages/util-base64-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-base64-browser/tsconfig.types.json b/packages/util-base64-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-base64-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-base64-node/package.json b/packages/util-base64-node/package.json index 403750716af0..54b2991031ba 100644 --- a/packages/util-base64-node/package.json +++ b/packages/util-base64-node/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-base64-node/tsconfig.cjs.json b/packages/util-base64-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-base64-node/tsconfig.cjs.json +++ b/packages/util-base64-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-base64-node/tsconfig.es.json b/packages/util-base64-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/util-base64-node/tsconfig.es.json +++ b/packages/util-base64-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-base64-node/tsconfig.types.json b/packages/util-base64-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-base64-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-body-length-browser/package.json b/packages/util-body-length-browser/package.json index 35ec180bed6e..3b9b1123ae10 100644 --- a/packages/util-body-length-browser/package.json +++ b/packages/util-body-length-browser/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-body-length-browser/tsconfig.cjs.json b/packages/util-body-length-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-body-length-browser/tsconfig.cjs.json +++ b/packages/util-body-length-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-body-length-browser/tsconfig.es.json b/packages/util-body-length-browser/tsconfig.es.json index 7af2d5ccd40c..5b020a83fc89 100644 --- a/packages/util-body-length-browser/tsconfig.es.json +++ b/packages/util-body-length-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-body-length-browser/tsconfig.types.json b/packages/util-body-length-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-body-length-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-body-length-node/package.json b/packages/util-body-length-node/package.json index 252384666207..24e06f46260e 100644 --- a/packages/util-body-length-node/package.json +++ b/packages/util-body-length-node/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-body-length-node/tsconfig.cjs.json b/packages/util-body-length-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-body-length-node/tsconfig.cjs.json +++ b/packages/util-body-length-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-body-length-node/tsconfig.es.json b/packages/util-body-length-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/util-body-length-node/tsconfig.es.json +++ b/packages/util-body-length-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-body-length-node/tsconfig.types.json b/packages/util-body-length-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-body-length-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-buffer-from/package.json b/packages/util-buffer-from/package.json index 7621d1870204..309929dfb476 100644 --- a/packages/util-buffer-from/package.json +++ b/packages/util-buffer-from/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-buffer-from/tsconfig.cjs.json b/packages/util-buffer-from/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-buffer-from/tsconfig.cjs.json +++ b/packages/util-buffer-from/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-buffer-from/tsconfig.es.json b/packages/util-buffer-from/tsconfig.es.json index 77ceda5fec16..fe84cbe7e342 100644 --- a/packages/util-buffer-from/tsconfig.es.json +++ b/packages/util-buffer-from/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-buffer-from/tsconfig.types.json b/packages/util-buffer-from/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-buffer-from/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-create-request/package.json b/packages/util-create-request/package.json index 83b0283e6bb2..4e135de9a0a4 100644 --- a/packages/util-create-request/package.json +++ b/packages/util-create-request/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-create-request/tsconfig.cjs.json b/packages/util-create-request/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-create-request/tsconfig.cjs.json +++ b/packages/util-create-request/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-create-request/tsconfig.es.json b/packages/util-create-request/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/util-create-request/tsconfig.es.json +++ b/packages/util-create-request/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-create-request/tsconfig.types.json b/packages/util-create-request/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-create-request/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-credentials/package.json b/packages/util-credentials/package.json index e4f45cae3a9f..43b5928bc2b8 100644 --- a/packages/util-credentials/package.json +++ b/packages/util-credentials/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-credentials/tsconfig.cjs.json b/packages/util-credentials/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-credentials/tsconfig.cjs.json +++ b/packages/util-credentials/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-credentials/tsconfig.es.json b/packages/util-credentials/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/util-credentials/tsconfig.es.json +++ b/packages/util-credentials/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-credentials/tsconfig.types.json b/packages/util-credentials/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-credentials/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-dynamodb/package.json b/packages/util-dynamodb/package.json index 3732d4774195..21d98a1d4fe5 100644 --- a/packages/util-dynamodb/package.json +++ b/packages/util-dynamodb/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-dynamodb/tsconfig.cjs.json b/packages/util-dynamodb/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-dynamodb/tsconfig.cjs.json +++ b/packages/util-dynamodb/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-dynamodb/tsconfig.es.json b/packages/util-dynamodb/tsconfig.es.json index aff2968c73bf..4a837b6a37af 100644 --- a/packages/util-dynamodb/tsconfig.es.json +++ b/packages/util-dynamodb/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-dynamodb/tsconfig.types.json b/packages/util-dynamodb/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-dynamodb/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-format-url/package.json b/packages/util-format-url/package.json index a547c8ca47ba..9a931a306095 100644 --- a/packages/util-format-url/package.json +++ b/packages/util-format-url/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-format-url/tsconfig.cjs.json b/packages/util-format-url/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-format-url/tsconfig.cjs.json +++ b/packages/util-format-url/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-format-url/tsconfig.es.json b/packages/util-format-url/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/util-format-url/tsconfig.es.json +++ b/packages/util-format-url/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-format-url/tsconfig.types.json b/packages/util-format-url/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-format-url/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-hex-encoding/package.json b/packages/util-hex-encoding/package.json index a53a3c4618e1..b4ee3d681138 100644 --- a/packages/util-hex-encoding/package.json +++ b/packages/util-hex-encoding/package.json @@ -5,7 +5,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-hex-encoding/tsconfig.cjs.json b/packages/util-hex-encoding/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-hex-encoding/tsconfig.cjs.json +++ b/packages/util-hex-encoding/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-hex-encoding/tsconfig.es.json b/packages/util-hex-encoding/tsconfig.es.json index a6e910d7020a..155f4144284f 100644 --- a/packages/util-hex-encoding/tsconfig.es.json +++ b/packages/util-hex-encoding/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-hex-encoding/tsconfig.types.json b/packages/util-hex-encoding/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-hex-encoding/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-locate-window/package.json b/packages/util-locate-window/package.json index 22e23658604d..45eb66990d37 100644 --- a/packages/util-locate-window/package.json +++ b/packages/util-locate-window/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-locate-window/tsconfig.cjs.json b/packages/util-locate-window/tsconfig.cjs.json index 50fe19a21388..9c2955587a8a 100644 --- a/packages/util-locate-window/tsconfig.cjs.json +++ b/packages/util-locate-window/tsconfig.cjs.json @@ -5,7 +5,6 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-locate-window/tsconfig.es.json b/packages/util-locate-window/tsconfig.es.json index b303a4a5e235..fb5e0633f670 100644 --- a/packages/util-locate-window/tsconfig.es.json +++ b/packages/util-locate-window/tsconfig.es.json @@ -6,7 +6,6 @@ "noImplicitThis": true, "strictNullChecks": true, "lib": ["dom", "es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-locate-window/tsconfig.types.json b/packages/util-locate-window/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-locate-window/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-uri-escape/package.json b/packages/util-uri-escape/package.json index 87b5a15f5d54..aff7e2028354 100644 --- a/packages/util-uri-escape/package.json +++ b/packages/util-uri-escape/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-uri-escape/tsconfig.cjs.json b/packages/util-uri-escape/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-uri-escape/tsconfig.cjs.json +++ b/packages/util-uri-escape/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-uri-escape/tsconfig.es.json b/packages/util-uri-escape/tsconfig.es.json index 6adc0089d91d..2992fcfbf5bd 100644 --- a/packages/util-uri-escape/tsconfig.es.json +++ b/packages/util-uri-escape/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-uri-escape/tsconfig.types.json b/packages/util-uri-escape/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-uri-escape/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-user-agent-browser/package.json b/packages/util-user-agent-browser/package.json index 9a0e31addfe3..67b1a7717098 100644 --- a/packages/util-user-agent-browser/package.json +++ b/packages/util-user-agent-browser/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-user-agent-browser/tsconfig.cjs.json b/packages/util-user-agent-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-user-agent-browser/tsconfig.cjs.json +++ b/packages/util-user-agent-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-user-agent-browser/tsconfig.es.json b/packages/util-user-agent-browser/tsconfig.es.json index 1f6002436c19..2805ebea8017 100644 --- a/packages/util-user-agent-browser/tsconfig.es.json +++ b/packages/util-user-agent-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection", "dom"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-user-agent-browser/tsconfig.types.json b/packages/util-user-agent-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-user-agent-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-user-agent-node/package.json b/packages/util-user-agent-node/package.json index 71dd0df51478..e39f9694ffe4 100644 --- a/packages/util-user-agent-node/package.json +++ b/packages/util-user-agent-node/package.json @@ -4,7 +4,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-user-agent-node/tsconfig.cjs.json b/packages/util-user-agent-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-user-agent-node/tsconfig.cjs.json +++ b/packages/util-user-agent-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-user-agent-node/tsconfig.es.json b/packages/util-user-agent-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/util-user-agent-node/tsconfig.es.json +++ b/packages/util-user-agent-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-user-agent-node/tsconfig.types.json b/packages/util-user-agent-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-user-agent-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-utf8-browser/package.json b/packages/util-utf8-browser/package.json index 5dca92205d09..02384fc36331 100644 --- a/packages/util-utf8-browser/package.json +++ b/packages/util-utf8-browser/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-utf8-browser/tsconfig.cjs.json b/packages/util-utf8-browser/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-utf8-browser/tsconfig.cjs.json +++ b/packages/util-utf8-browser/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-utf8-browser/tsconfig.es.json b/packages/util-utf8-browser/tsconfig.es.json index 77ceda5fec16..fe84cbe7e342 100644 --- a/packages/util-utf8-browser/tsconfig.es.json +++ b/packages/util-utf8-browser/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-utf8-browser/tsconfig.types.json b/packages/util-utf8-browser/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-utf8-browser/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-utf8-node/package.json b/packages/util-utf8-node/package.json index 5ade133425cc..2dfb5d7641ab 100644 --- a/packages/util-utf8-node/package.json +++ b/packages/util-utf8-node/package.json @@ -7,7 +7,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-utf8-node/tsconfig.cjs.json b/packages/util-utf8-node/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-utf8-node/tsconfig.cjs.json +++ b/packages/util-utf8-node/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-utf8-node/tsconfig.es.json b/packages/util-utf8-node/tsconfig.es.json index 5c78fa265920..547d95db2d35 100644 --- a/packages/util-utf8-node/tsconfig.es.json +++ b/packages/util-utf8-node/tsconfig.es.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-utf8-node/tsconfig.types.json b/packages/util-utf8-node/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-utf8-node/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/util-waiter/package.json b/packages/util-waiter/package.json index 607c50de7665..ca9d3f2de7f8 100644 --- a/packages/util-waiter/package.json +++ b/packages/util-waiter/package.json @@ -15,7 +15,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/util-waiter/tsconfig.cjs.json b/packages/util-waiter/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/util-waiter/tsconfig.cjs.json +++ b/packages/util-waiter/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/util-waiter/tsconfig.es.json b/packages/util-waiter/tsconfig.es.json index 77ceda5fec16..fe84cbe7e342 100644 --- a/packages/util-waiter/tsconfig.es.json +++ b/packages/util-waiter/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/util-waiter/tsconfig.types.json b/packages/util-waiter/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/util-waiter/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/packages/xml-builder/package.json b/packages/xml-builder/package.json index f96575ec933c..65fa9684989b 100644 --- a/packages/xml-builder/package.json +++ b/packages/xml-builder/package.json @@ -13,7 +13,8 @@ "scripts": { "build:cjs": "tsc -p tsconfig.cjs.json", "build:es": "tsc -p tsconfig.es.json", - "build": "yarn build:es && yarn build:cjs", + "build:types": "tsc -p tsconfig.types.json", + "build": "yarn build:cjs && yarn build:es && yarn build:types", "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", "test": "jest" }, diff --git a/packages/xml-builder/tsconfig.cjs.json b/packages/xml-builder/tsconfig.cjs.json index 67f09ddd4138..f31c61813366 100644 --- a/packages/xml-builder/tsconfig.cjs.json +++ b/packages/xml-builder/tsconfig.cjs.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/cjs", "baseUrl": "." diff --git a/packages/xml-builder/tsconfig.es.json b/packages/xml-builder/tsconfig.es.json index 77ceda5fec16..fe84cbe7e342 100644 --- a/packages/xml-builder/tsconfig.es.json +++ b/packages/xml-builder/tsconfig.es.json @@ -1,7 +1,6 @@ { "compilerOptions": { "lib": ["es5", "es2015.collection"], - "declarationDir": "./dist/types", "rootDir": "./src", "outDir": "./dist/es", "baseUrl": "." diff --git a/packages/xml-builder/tsconfig.types.json b/packages/xml-builder/tsconfig.types.json new file mode 100644 index 000000000000..ecae89863573 --- /dev/null +++ b/packages/xml-builder/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "rootDir": "./src", + "declarationDir": "./dist/types", + "baseUrl": "." + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +} diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 6727979758c7..679fd1652904 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -5,11 +5,11 @@ "moduleResolution": "node", "target": "ES2018", "strict": true, - "declaration": true, "importHelpers": true, "noEmitHelpers": true, "sourceMap": false, "inlineSourceMap": true, - "inlineSources": true + "inlineSources": true, + "removeComments": true } } diff --git a/tsconfig.es.json b/tsconfig.es.json index d21b4636a3d1..a5db4166c54a 100644 --- a/tsconfig.es.json +++ b/tsconfig.es.json @@ -6,7 +6,6 @@ "moduleResolution": "node", "strict": true, "sourceMap": false, - "declaration": true, "importHelpers": true, "noEmitHelpers": true, "inlineSourceMap": true, diff --git a/tsconfig.types.json b/tsconfig.types.json new file mode 100644 index 000000000000..b1e928c0272f --- /dev/null +++ b/tsconfig.types.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "strict": true, + "declaration": true, + "emitDeclarationOnly": true + } +}