Skip to content

Conversation

@aws-cdk-automation
Copy link
Collaborator

Backport

This will backport the following commits from main to maintenance/v5.6:

Questions ?

Please refer to the Backport tool documentation

When a user provides a custom `tsconfig.json` file, they have the ability to override the `lib` setting, which provides a number of libraries that should be loaded at compile time. This config setting is not passed directly into the TypeScript compiler. Instead, it is resolved and translated into a list of `.d.ts` file that are passed as `rootNames` to the compiler, along with the actual source files. In that resolution, we failed to look at the `lib` setting the user provided, and instead always used the default config. Fix by looking at the user-provided config, falling back to the default config only if the user config doesn't have a `lib` setting (mirroring the behavior of tsc). Fixes aws/jsii#4706. --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 (cherry picked from commit 26a3d96)
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Dec 13, 2024
Merged via the queue into maintenance/v5.6 with commit bda4b23 Dec 13, 2024
77 checks passed
@aws-cdk-automation aws-cdk-automation deleted the backport/maintenance/v5.6-pr-1576 branch December 13, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-approve Automatically approve this PR backport

2 participants