Currently, I am engaged in a microservice integration project where I simultaneously run 8 typescript services using the command
tsc-watch --preserveWatchOutput --onSuccess 'node build/index.js'
.
Surprisingly, these processes are utilizing 70% of my CPU power even when no changes are being made to the source code. After some research, I discovered that there might be continuous polling for changes happening in the background. In an attempt to stop this unnecessary polling, I tried setting the environment variable TSC_NONPOLLING_WATCHER to "1" based on a helpful hint found at: https://medium.com/@julioromano/writing-typescript-on-a-laptop-this-might-improve-your-battery-life-f503dd16f019
Unfortunately, this adjustment did not seem to have any effect. Moreover, the author mentioned using "tsc -w" instead of tsc-watch, leading me to question the difference between tsc -w and tsc-watch.
If anyone could provide further insight or assistance regarding this matter, I would greatly appreciate it.