-
Notifications
You must be signed in to change notification settings - Fork 522
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(typescript): exclude typescript lib declarations in... #875
Merged
alexeagle
merged 2 commits into
bazel-contrib:master
from
gregmagolan:exclude-typescript-lib-declarations
Jun 19, 2019
Merged
fix(typescript): exclude typescript lib declarations in... #875
alexeagle
merged 2 commits into
bazel-contrib:master
from
gregmagolan:exclude-typescript-lib-declarations
Jun 19, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gregmagolan
changed the title
fix(typescript): exclude typescript lib declarations in
fix(typescript): exclude typescript lib declarations in...
Jun 19, 2019
gregmagolan
force-pushed
the
exclude-typescript-lib-declarations
branch
2 times, most recently
from
June 19, 2019 19:34
4eba737
to
c34fdfc
Compare
gregmagolan
added a commit
to gregmagolan/rules_nodejs
that referenced
this pull request
Jun 19, 2019
Verify that typescript/lib/typescript.d.ts and typescript/lib/tsserverlibrary.d.ts are available since we must exclude all other typescript/lib/*.d.ts which are controlled by the compilerOptions.libs config. See bazel-contrib#875 for more details.
...node_module_library transitive_declarations as the including /node_modules/typescript/lib/lib.*.d.ts is controlled by compilerOptions libs. Including all of the can cause typings conflicts. Test coverage also added for this that verifies that typescript/lib/typescript.d.ts and typescript/lib/tsserverlibrary.d.ts are available since we must exclude other typescript/lib/ .d.ts files which are controlled by the compilerOptions.libs config. Also verify that libs not specified such as lib.webworkder.d.ts in compileOptions.libs config are not included in the compilation unit. See bazel-contrib#875 for more details.
...in generated ts_library tsconfig. This fixes an issue where the @bazel/tsetse plugin values in a user's config would always be overridden by ts_library and not honoured. Also remove disable_tsetse_for_external test as we no longer doing this.
gregmagolan
force-pushed
the
exclude-typescript-lib-declarations
branch
from
June 19, 2019 21:58
8aed890
to
0bc6660
Compare
Fix for
included and test coverage as well |
Closed
14 tasks
alexeagle
approved these changes
Jun 19, 2019
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.
okay, I convinced myself that the disable_tsetse stuff is no longer needed.
alexeagle
pushed a commit
that referenced
this pull request
Jun 19, 2019
...node_module_library transitive_declarations as the including /node_modules/typescript/lib/lib.*.d.ts is controlled by compilerOptions libs. Including all of the can cause typings conflicts. Test coverage also added for this that verifies that typescript/lib/typescript.d.ts and typescript/lib/tsserverlibrary.d.ts are available since we must exclude other typescript/lib/ .d.ts files which are controlled by the compilerOptions.libs config. Also verify that libs not specified such as lib.webworkder.d.ts in compileOptions.libs config are not included in the compilation unit. See #875 for more details.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...node_module_library transitive_declarations as the including of these .d.ts is controlled by compilerOptions libs (except for typescript.d.ts and tsserverlibrary.d.ts which are imported standardly)
. Including all of the can cause typings conflicts.
Unblocks angular/angular#31019