title: Why does the node inspector not start when I am using nodemon and ts-node?
body: <p>I have a simple node server written in typescript. My package.json is configured as:</p>
  
  <pre><code>"scripts": {
    "build": "tsc",
    "dev": "nodemon --watch src/**/* -e ts,json --exec ts-node ./src/server.ts",
    "debug": "nodemon  --verbose  --watch src/**/* -e ts,json --exec ts-node --inspect ./src/server.ts"
  },
  </code></pre>
  
  <p>When I run <code>npm run dev</code> nodemon will launch the server and restart it when any changes are made.  </p>
  
  <pre><code>[02/28/18 20:45:53]  npm run dev
  
  &gt; pq-api@1.0.0 dev C:\Users\joe\pq\pq-api
  &gt; nodemon --watch src/**/* -e ts,json --exec ts-node ./src/server.ts
  
  [nodemon] 1.15.1
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching: src/**/*
  [nodemon] starting `ts-node ./src/server.ts`
  initializing config to development
  info: PQ-API running on port 3000
  </code></pre>
  
  <p>However, when I run <code>npm run debug</code> (so I can attach a debugger) It looks like it begins to start, but just hangs forever</p>
  
  <pre><code>[02/28/18 20:39:30]  npm run debug
  
  &gt; pq-api@1.0.0 debug C:\Users\joe\pq\pq-api
  &gt; nodemon  --verbose  --watch src/**/* -e ts,json --exec ts-node --inspect ./src/server.ts
  
  [nodemon] 1.15.1
  [nodemon] to restart at any time, enter `rs`
  [nodemon] or send SIGHUP to 10156 to restart
  [nodemon] watching: src/**/*
  [nodemon] watching extensions: ts,json
  [nodemon] starting `ts-node --inspect ./src/server.ts`
  [nodemon] spawning
  [nodemon] child pid: 13344
  [nodemon] watching 12 files
  </code></pre>
  
  <p>That is all the output has. The script is never executed; the server never starts up, and the inspector is never available to connect to.  </p>
  
  <p><strong>node 8.94</strong><br>
  <strong>nodemon 1.15.1</strong><br>
  <strong>ts-node 5.0.0</strong><br>
  <strong>typescript 2.7.2</strong></p>