You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to add an option so that tsx runs tsc --noEmit before transpiling
Why?
Type-checking is important, and only relying on the IDE checker is not enough. The dependencies of a project change, and those can introduce new type errors. But because I haven't opened that file, the IDE doesn't check it.
Alternatives
Wrapping tsx so that it calls tsc --noEmit file before tsx
Additional context
No response
The text was updated successfully, but these errors were encountered:
Blocking execution with type-checking kind of defeats the point of tsx. If you want to do that, why not just run tsc and use Node to run the compiled file?
Feature request
It would be nice to add an option so that tsx runs
tsc --noEmit
before transpilingWhy?
Type-checking is important, and only relying on the IDE checker is not enough. The dependencies of a project change, and those can introduce new type errors. But because I haven't opened that file, the IDE doesn't check it.
Alternatives
Wrapping
tsx
so that it callstsc --noEmit file
before tsxAdditional context
No response
The text was updated successfully, but these errors were encountered: