modification to our source files, we would want them to be compiled to
This is an important step. Make sure you leave the “watch” terminal session open at the end of this step.
Your project is already configured with a nice little npm script called
Open a new terminal session (or tab). You will keep this window open in the background for the duration of the workshop.
From your project directory run:
npm run watch
Then, screen will be cleared and you'll see:
Starting compilation in watch mode... Found 0 errors. Watching for file changes. ...
This will start the TypeScript compiler (
tsc) in “watch” mode, which will
monitor your project directory and will automatically compile any changes to
.ts files to
‼️ Keep this terminal window open with
watch running for the duration of the workshop.