This PR fixes/implements the following bugs/features
[x] Improves typescript compilation time #119
Explain the motivation for making this change. What existing problem does the pull request solve?
Compilation time of the library can be decreased by importing aws services directly from their client files instead of the entire SDK. This also reduces the compilation time of projects that use squiss-ts as a dependency.
Test plan (required)
It is not that easy to measure and compare typescript compilation performance in a CI environment. Only added a npm script benchmark that uses tsc's --extendedDiagnostics flag, the advice would be to run this before a merge to notice any regression in compilation performance.
Summary
This PR fixes/implements the following bugs/features
Explain the motivation for making this change. What existing problem does the pull request solve?
Compilation time of the library can be decreased by importing aws services directly from their client files instead of the entire SDK. This also reduces the compilation time of projects that use
squiss-ts
as a dependency.Test plan (required)
It is not that easy to measure and compare typescript compilation performance in a CI environment. Only added a npm script
benchmark
that usestsc
's--extendedDiagnostics
flag, the advice would be to run this before a merge to notice any regression in compilation performance.