title: How to run .ts file script and angular 5 build using NPM
body: <p>I have a file with .ts extension and I want to execute this file first and then to run npm run build to build my angular 5 project</p>
  
  <pre><code>package.json
   "scripts": {
      "ng": "ng",
      "start": "ng serve",
      "compile": "npm-run-all myts build",
      "myts": "ts-node git.version.ts",
      "build": "ng build --prod",
      "test": "ng test",
    },
  </code></pre>
  
  <p>And I get this error</p>
  
  <blockquote>
    <p>npm run compile</p>
  </blockquote>
  
  <pre><code>&gt; ng-forms-api@0.0.0 compile C:\Users\George35mk\Documents\Projects\gui\frontend\&gt; 
  npm-run-all myts build
  
  'npm-run-all' is not recognized as an internal or external command,
  operable program or batch file.
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! ng-forms-api@0.0.0 compile: `npm-run-all myts build`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the ng-forms-api@0.0.0 compile script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\George35mk\AppData\Roaming\npm-cache\_logs\2018-03-01T14_47_01_179Z-debug.log
  PS C:\Users\George35mk\Documents\Projects\gui\frontend\
  </code></pre>
  
  <h2>If I run this is work</h2>
  
  <blockquote>
    <p>ts-node git.version.ts</p>
  </blockquote>
  
  <h2>The problem is I cant run serial scripts using npm</h2>