-
Notifications
You must be signed in to change notification settings - Fork 244
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
Conversation
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.
@@ -289,8 +289,12 @@ export class Compiler implements Emitter { | |||
], | |||
exclude: [ | |||
'node_modules', | |||
...pi.excludeTypescript, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping
The PR includes a test by way of jsii-calc-base-of-base... Are you looking for something else? |
What's up with this PR? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
In cases where both
jsii.tsc.outDir
andjsii.tsc.rootDir
are set, androotDir
happens to be a parent directory ofoutDir
, the generatedexclude
would match all files fromrootDir
, resulting in an empty input set.This makes sure to not emit an
exclude
declaration foroutDir
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.