Tidy TSC Output
For cleaner tsc (TypeScript compiler) output: pipe its output into my package tidy-tsc:
npm i -g tidy-tsc
npx tsc | tidyt
npx tsc -b | tidyt # etc.
# in one of my packages
npm run compile | tidyt
| tidyt cleans up the tsc output so instead of seeing tons of logs for every single file's errors like this:
src/file.ts:9:18 - error TS2304: Cannot find name 'missingValue'.
9 const value = missingValue;
~~~~~~~~~~~~
src/file.ts:18:15 - error TS7006: Parameter 'char' implicitly has an 'any' type.
18 .map((char, index) => (index % 2 ? char.toUpperCase() : char.toLowerCase()))
~~~~
src/file.ts:18:21 - error TS7006: Parameter 'index' implicitly has an 'any' type.
18 .map((char, index) => (index % 2 ? char.toUpperCase() : char.toLowerCase()))
~~~~~
Found 3 errors.
All you see is this:
Failed files (1):
src/file.ts