Would it be OK if we always print tsc errors? hook-pre-commit.js always reports lint errors so I had expected tsc errors to always be reported as well. Without printing I had thought that hook-pre-commit.js was failing silently somewhere. If there is a failure to commit it is nice to be told where it is without needing to run tsc again.
tsc
errors are only printed ifoutputToConsole
is true.https://github.com/phetsims/perennial/blob/master/js/scripts/hook-pre-commit.js#L101-L107
Would it be OK if we always print tsc errors? hook-pre-commit.js always reports lint errors so I had expected tsc errors to always be reported as well. Without printing I had thought that hook-pre-commit.js was failing silently somewhere. If there is a failure to commit it is nice to be told where it is without needing to run
tsc
again.