Less-opinionated typecheck
target
#31564
aaronadamsCA
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was pretty happy to see a new
typecheck
target in the@nx/js/typescript
plugin. Until I tried to use it!It turns out this target doesn't even try to run a type check at all, but rather an extremely opinionated build:
noEmit
from your TypeScript config.IMO these concerns should really be separated.
If you're using project references, sure, I guess a
typecheck
target that actually builds definition files makes sense.But if you're not, you should be able to get a simple inferred
typecheck
target that runs a simpletsc
typecheck.Beta Was this translation helpful? Give feedback.
All reactions