Remove Typescript warnings and use cascading tsconfigs or cli switches instead #552
Closed
2 tasks done
Labels
bug
Something isn't working
Description
Problem
When various settings are specified in
tsconfig
theprepare
command throws warnings:These warnings conflict with being able to properly use
tsc
in the project for type-checking and are a source of confusion for contributors and maintainers.Example:
noEmit
to make sure files are never accidentally emitted. Rather than do this theprepare
script can either just pass--noEmit false
or use its own tsconfig rather than rely on the user's tsconfig. Indeed because of the way bob handles compilation it requires noEmit to be true because the user cannot runyarn tsc
and emit the same artifacts that bob does which is way more complex thanyarn tsc
can do on its own with one tsconfig. It doesn't make sense to warn users not to use noEmit when that's what they should be using.Desired functionality:
The build tool should use the cascading and extending of tsconfigs and/or cli switches to enforce its requirements rather than print warnings in the CLI.
Packages
Selected options
N?A
Link to repro
N/A
Environment
N/A
The text was updated successfully, but these errors were encountered: