title: What's the equivalence of typings globalDevDependencies for npm @types packages?
body: <p>I want to upgrade an tsc@1.8 project to tsc@2 and in the process ditch <code>typings</code> from my tool chain.</p>
  
  <p>It's not a problem for the common depencies as these dependencies from my <code>typings.json</code>:</p>
  
  <pre><code>"dependencies": {
    "bluebird": "registry:npm/bluebird#3.3.4+20160515010139",
    "lodash": "registry:npm/lodash#4.0.0+20160416211519",
    "mime": "registry:npm/mime#1.3.0+20160423043021"
  }
  </code></pre>
  
  <p>I can easily install via</p>
  
  <pre><code>npm i @types/bluebird @types/lodass @types/mime
  </code></pre>
  
  <p>Yet I also have some <code>globalDevDependencies</code> for my test setup in my <code>typings.json</code>:</p>
  
  <pre><code>"globalDevDependencies": {
    "mocha": "registry:dt/mocha#2.2.5+20160317120654"
  }
  </code></pre>
  
  <p>My first try was:</p>
  
  <pre><code>npm install @types/mocha --save-dev
  </code></pre>
  
  <p>Yet now <code>tsc</code> complains it doesn't know the <code>mocha</code> functions <code>it</code> and <code>describe</code>.</p>
  
  <pre><code>tests/unit/HelloServiceTest.ts(4,1): error TS2304: Cannot find name 'describe'.
  tests/unit/HelloServiceTest.ts(5,5): error TS2304: Cannot find name 'it'.
  tests/unit/HelloServiceTest.ts(10,5): error TS2304: Cannot find name 'it'.
  </code></pre>
  
  <p>As a longshot I mistakenly thought installing those globally might resolve the issue:</p>
  
  <pre><code>npm i @types/mocha  -g
  </code></pre>
  
  <p>I also stumbled across <a href="https://github.com/TypeStrong/atom-typescript/issues/1054" rel="nofollow noreferrer">this issue</a> where the solution was to not exclude the types folder in the <code>tsconfig.json</code>:</p>
  
  <pre><code>"exclude": [
      "node_modules",
      "!node_modules/@types"
  ]
  </code></pre>
  
  <p>yet it also didn't work for me, throwing the same error.</p>
  
  <p>In the end, I don't know how to achieve the same effect that <code>typings</code>' <code>globalDevDependencies</code> and <code>globalDependencies</code> had when I want to use just <code>npm</code> and the <code>@types/*</code> packages instead of <code>typings</code>.</p>