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
This is a feature request rather than a bug. I'm interested in collaborating on it
This has already been addressed with #121 but no proper reasoning was provided. The missing point is that tsx is advertised as a replacement for ts-node (which is abandoned) but provides no feature parity. ts-node provides type checks. The suggested tsc --noEmit workaround isn't convenient for regular run and cannot be effectively used for interactive and watch modes.
Here is an example of a possible workaround with watch mode:
The problem is that it cannot prevent a rebuild on type errors. Since tsx cli wasn't written to be extendable, this would require to fully discard watch feature and do this from scratch, e.g. with nodemon. And there is no workaround for interactive mode.
I assume the approach to optional type checking would be to rely on the existence of tsc without introducing typescript as a direct dependency, or import typescript optional dependency to process repl lines, both for global and local use
Bugs are expected to be fixed by those affected by it
I'm interested in working on this issue
Compensating engineering work will speed up resolution and support the project
I'm willing to offer $10 for financial support
The text was updated successfully, but these errors were encountered:
Acknowledgements
Minimal reproduction URL
https://github.com/bisubus/node-app-template/blob/39de183f651b02b917a02d5bd8ad9d5c433e8da1/package.json
Problem & expected behavior (under 200 words)
This is a feature request rather than a bug. I'm interested in collaborating on it
This has already been addressed with #121 but no proper reasoning was provided. The missing point is that tsx is advertised as a replacement for ts-node (which is abandoned) but provides no feature parity. ts-node provides type checks. The suggested
tsc --noEmit
workaround isn't convenient for regular run and cannot be effectively used for interactive and watch modes.Here is an example of a possible workaround with watch mode:
The problem is that it cannot prevent a rebuild on type errors. Since tsx cli wasn't written to be extendable, this would require to fully discard watch feature and do this from scratch, e.g. with nodemon. And there is no workaround for interactive mode.
I assume the approach to optional type checking would be to rely on the existence of
tsc
without introducingtypescript
as a direct dependency, or importtypescript
optional dependency to process repl lines, both for global and local useBugs are expected to be fixed by those affected by it
Compensating engineering work will speed up resolution and support the project
The text was updated successfully, but these errors were encountered: