How does tsc know where are the ts files to compile?
<p>I am trying to learn angularjs v2 from the official documentation.</p>

<p><a href="https://angular.io/docs/ts/latest/tutorial/toh-pt1.html" rel="nofollow noreferrer">https://angular.io/docs/ts/latest/tutorial/toh-pt1.html</a></p>

<p><a href="https://github.com/angular/quickstart" rel="nofollow noreferrer">https://github.com/angular/quickstart</a></p>

<p>While following the tutorial in the above link, I noticed that after running <code>npm start</code>, the software is able to detect changes in ts scripts and compile immediately to js. This is amazing!</p>

<p>I am trying to figure out where is the code that made this possible. </p>

<p>From  <code>package.json</code>,</p>

<pre><code>"scripts": {
    "start": "tsc &amp;&amp; concurrently \"tsc -w\" \"lite-server\" ",
</code></pre>

<p>I am guessing that <code>tsc</code> is responsible for the compilation. What puzzles me is how does tsc know where are the ts files to compile? Where can I configure the settings for <code>tsc</code>? Are there settings to optimize the compilation process? </p>