As we know, Angular 4+ applications are built with TypeScript.
When we type ng serve in the command line for one these apps, the application runs in the browser and responds to our changes without any .js files apparently being created in our project.
Let's say I have a file, myscript.ts, that exists outside of an Angular application. How can I create a watch scenario for this so that the file runs in Node, but I don't have to create a new file?
Clearly, the case is not that the file has to be compiled into a JavaScript file. We can see when we run ng serve that no new files are created.
angularandwebpackrunning in the background duringng server, and thennoderunningtypescripton every change, but I guess you are intersted ints-nodeand/or running typescript withtsc -wswitch to watch the file changes.