TSC Watch : Design Patterns in TypeScript

TSC Watch : Design Patterns in TypeScript

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=WWRrq8fcndI



Duration: 3:13
0 views
0


Design Patterns In TypeScript (book)
https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6

Documentation : https://sbcode.net/typescript/getting_started/#tsc-watch

Before running your compiled JavaScript in Node.js, you need to run your TypeScript source files through TSC.

This process of running tsc -p ./src and then seeing the output in Node.js using node ./dist/test.js for example, can be quite tedious if you need to keep typing the tsc and the node commands in turn for every change you make.

Instead, you can run TSC in watch mode, which will cause it to continue running and automatically compile and check any changes you make to the TypeScript source files, and then you open a second terminal that you can use specifically for executing the node or other commands.







Tags:
Design Patterns In TypeScript
TypeScript
Design Patterns
tsc watch