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

fix: files are not excluded when using user-provided tsconfig (and various other fixes and improvements) #969

Merged
merged 1 commit into from
May 15, 2024

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented May 14, 2024

When using a user-provided tsconfig, the exclude and include options were incorrectly dropped and instead all *.ts files were always included in the build.

This change also improves on the compile test which previously actually didn't compile anything.
Also added a bunch of additional configurable options to make many more common tsconfigs pass the the strict validation.


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

@mrgrain mrgrain changed the title first batch fix: various fixes and improvements to new user-provided tsconfig feature May 14, 2024
@mrgrain mrgrain force-pushed the mrgrain/fix/custom-tsconfig-fixes branch 2 times, most recently from 9401965 to 10afc1f Compare May 15, 2024 09:20
@mrgrain mrgrain changed the title fix: various fixes and improvements to new user-provided tsconfig feature fix: files are not excluded when using user-provided tsconfig (and various other fixes and improvements) May 15, 2024
@mrgrain mrgrain marked this pull request as ready for review May 15, 2024 09:22
@mrgrain mrgrain force-pushed the mrgrain/fix/custom-tsconfig-fixes branch from 10afc1f to 809e1ed Compare May 15, 2024 09:22
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue May 15, 2024
Merged via the queue into main with commit 2a19bf8 May 15, 2024
72 checks passed
@aws-cdk-automation aws-cdk-automation deleted the mrgrain/fix/custom-tsconfig-fixes branch May 15, 2024 11:17
aws-cdk-automation pushed a commit that referenced this pull request May 16, 2024
…rious other fixes and improvements) (#969)

When using a user-provided tsconfig, the `exclude` and `include` options
were incorrectly dropped and instead all `*.ts` files were always
included in the build.

This change also improves on the compile test which previously actually
didn't compile anything.
Also added a bunch of additional configurable options to make many more
common tsconfigs pass the the strict validation.

---

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 2a19bf8)
aws-cdk-automation pushed a commit that referenced this pull request May 16, 2024
…rious other fixes and improvements) (#969)

When using a user-provided tsconfig, the `exclude` and `include` options
were incorrectly dropped and instead all `*.ts` files were always
included in the build.

This change also improves on the compile test which previously actually
didn't compile anything.
Also added a bunch of additional configurable options to make many more
common tsconfigs pass the the strict validation.

---

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 2a19bf8)
@aws-cdk-automation
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
maintenance/v5.2
maintenance/v5.3

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

aws-cdk-automation pushed a commit that referenced this pull request May 16, 2024
…rious other fixes and improvements) (#969)

When using a user-provided tsconfig, the `exclude` and `include` options
were incorrectly dropped and instead all `*.ts` files were always
included in the build.

This change also improves on the compile test which previously actually
didn't compile anything.
Also added a bunch of additional configurable options to make many more
common tsconfigs pass the the strict validation.

---

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 2a19bf8)
@aws-cdk-automation
Copy link
Collaborator

💔 Some backports could not be created

Status Branch Result
maintenance/v5.2 An unhandled error occurred. Please see the logs for details
maintenance/v5.3

Manual backport

To create the backport manually run:

backport --pr 969

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

github-merge-queue bot pushed a commit that referenced this pull request May 16, 2024
…rious other fixes and improvements) (backport #969) (#981)

# Backport

This will backport the following commits from `main` to
`maintenance/v5.2`:
- [fix: files are not excluded when using user-provided tsconfig (and
various other fixes and improvements)
(#969)](#969)

<!--- Backport version: 9.5.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
github-merge-queue bot pushed a commit that referenced this pull request May 16, 2024
…rious other fixes and improvements) (backport #969) (#982)

# Backport

This will backport the following commits from `main` to
`maintenance/v5.3`:
- [fix: files are not excluded when using user-provided tsconfig (and
various other fixes and improvements)
(#969)](#969)

<!--- Backport version: 9.5.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants