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(jsii): excessive "exclude" in "tsconfig.json" #1736

Merged
merged 5 commits into from
Feb 15, 2021

Conversation

RomainMuller
Copy link
Contributor

@RomainMuller RomainMuller commented Jun 15, 2020

In cases where both jsii.tsc.outDir and jsii.tsc.rootDir are set, and rootDir happens to be a parent directory of outDir, the generated exclude would match all files from rootDir, resulting in an empty input set.

This makes sure to not emit an exclude declaration for outDir in this case, so that input files do not get excluded.


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

In cases where both `jsii.tsc.outDir` and `jsii.tsc.rootDir` are set,
and `rootDir` happens to be a parent directory of `outDir`, the
generated `exclude` would mathc all files from `rootDir`, resulting in
an empty input set.

This makes sure to not emit an `exclude` declaration for `outDir` in
this case, so that input files do not get excluded.
@RomainMuller RomainMuller requested a review from a team June 15, 2020 09:39
@RomainMuller RomainMuller self-assigned this Jun 15, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jun 15, 2020
@@ -289,8 +289,12 @@ export class Compiler implements Emitter {
],
exclude: [
'node_modules',
...pi.excludeTypescript,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we write a test for this?

Base automatically changed from master to main October 28, 2020 16:31
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Ping

@RomainMuller
Copy link
Contributor Author

The PR includes a test by way of jsii-calc-base-of-base... Are you looking for something else?

@eladb
Copy link
Contributor

eladb commented Jan 28, 2021

What's up with this PR?

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-6Jw05QLuWWwe
  • Commit ID: 0b0f817
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Feb 15, 2021

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Feb 15, 2021
@mergify mergify bot merged commit ecffb9f into main Feb 15, 2021
@mergify
Copy link
Contributor

mergify bot commented Feb 15, 2021

Merging (with squash)...

This was referenced Mar 17, 2021
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