This is the introduction file to a Typescript Course on Udemy.
https://www.udemy.com/course/typescript-the-beginner-guide/
First run the following command to initialize and the npm package.
npm init
Open package.json and copy and paste the following under "scripts" - note that the --watch flag will watch the ts file for changes and recompile on save so that we don't manually have to run the compiler:
"start": "tsc ./src/index.ts --watch"
Because the start script has been added tot he package.json, all you need to do is run the following command to both watch for saves and compile the code into ES5 on save.
npm start