Provide an editor-level warning when including output files #40195
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Something that we noticed with internal codebases, as well as even with RxJS is that
tsconfig.json
s are incorrectly configured for editor scenarios and include folders likedist
andlib
. This means you end up with slower performance, and noisy auto-imports.We already provide some sort of error here when compiling, but we don't provide the same error in editor scenarios.
Open questions:
tsconfig.json
doesn't specify anoutDir
, so it doesn't know that it should avoid includingdist
. Maybe we can use some directory-naming heuristics when we find one folder namedsrc
and another nameddist
orlib
?The text was updated successfully, but these errors were encountered: