-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Always build project irrespective of errors in dependency with tsc -b #58854
Conversation
@typescript-bot test it |
Hey @sheetalkamat, the results of running the DT tests are ready. Everything looks the same! |
@sheetalkamat Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
This is going to be awesome for benchmarking and extended testing, since we'll actually be able to build build-mode projects without them short circuiting, right? |
@sheetalkamat Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
Yes. While debugging you could just build without having to block on errors |
#58854 (comment) shows how more packages are being built and errors are reported |
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.
Since we don't do project concatenation anymore, there's not even a reason to block when noEmitOnError
is set, neat.
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.
So excited for this one.
Are there any issues that this closes? I assume that docs will have to be updated too (surely we document the short circuiting somewhere...).
I also assume that nobody's hard depending on this behavior and we don't need some sort of flag to ask build mode to bail early on failures?
I am hoping we dont need a flag. If the need arises we should evaluate adding the flag at that point. |
Could that flag be |
@DanielRosenwasser when i was working on this, i tried that option already and it has no effect, because "d.ts" files from referenced projects will not have errors and blocking project build just because its dependency had error means nothing really. its really whether d.ts file from referenced project has changed or not. |
@sheetalkamat Does this PR means that if project1 depends on project2, if project 2 has an error, I would eventually see compilation errors in both projects? |
Yes |
No description provided.