Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(jsii): allow customizing tsconfig.json file name #3076

Merged
merged 7 commits into from
Oct 19, 2021

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Oct 18, 2021

In order to support environment in which users want to use the default name tsconfig.json for a different compiler configuration (e.g. configuration that includes both sources and test files), add a switch to the jsii compiler that allows customizing the name of the generated tsconfig.json file.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

In order to support environment in which users want to use the default name tsconfig.json for a different compiler configuration (e.g. configuration that includes both sources and test files), add a switch to the jsii compiler that allows customizing the name of the generated tsconfig.json file.
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 18, 2021
@eladb eladb requested a review from Chriscbr October 19, 2021 07:27
Copy link
Contributor

@RomainMuller RomainMuller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I fully understand the use-case, in particular, that scenario sounds like we might be building a footgun... As it becomes all too easy for people to cause the .js files that'll end up packaged up (by jsii-packmak) to have been transformed with a configuration that is incompatible with the runtimes.

packages/jsii/lib/compiler.ts Outdated Show resolved Hide resolved
packages/jsii/test/compiler.test.ts Show resolved Hide resolved
packages/jsii/lib/compiler.ts Outdated Show resolved Hide resolved
@eladb eladb merged commit c611f26 into main Oct 19, 2021
@eladb eladb deleted the benisrae/customize-tsconfig branch October 19, 2021 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants