with the command tsc -w
but it seems that i runs infinitely and listens constantly to the changes in .ts files to build them to .js right away.
is there any way to compile the ts code ONLY ONCE? i tried looking it over the web but all the answers says to use tsc -w
Pretty sure the -w stands for watch
Just do : tsc fileName.ts Then run it by : node fileName.js
O so, can't I just compile the Whole source code once instead?
then you have to do it by tsconfig.json https://www.tutorialsteacher.com/typescript/typescript-compiling-project-and-tsconfig
Обсуждают сегодня