Prevent TypeScript from clearing console in watch mode

Jake Ginnivan
1 min readMay 19, 2020

I am using the concurrently npm package to simultaneously start TypeScript in watch mode and also nodemon to watch the compiled files.

Since TypeScript 2.7.2 it clears the console when watch mode starts, and on incremental compilation.

This messed up my concurrently console output so after some hunting I found a pretty nice solution in https://github.com/microsoft/TypeScript/issues/21295#issuecomment-367571059

Here is my package.json with the setup

--

--

Jake Ginnivan

Co-Founder featureboard.app | Principal Consultant arkahna.io | Previously Tech Lead Seven West Media WA | International Speaker | OSS | Mentor