title: Require paths are not proper after typescript file was transpiled by babel
body: <p><strong>Problem</strong></p>
  
  <p>When I run a nodemon with <em>npm run start</em>, I get <em>Error: Cannot find module 'Test'</em>, and When I build files with <em>npm run build</em> and run ./dist/index.js, I get the same error.</p>
  
  <p>As you can see, a require path on <em>./dist/index.js</em> is not recognized properly.</p>
  
  <p>I don't know which configuration have to be changed, so I questioned.</p>
  
  <p>If you know about that, Please reply back to me with your asnwer. Thanks :)</p>
  
  <p><strong>Source Code</strong></p>
  
  <p>./src/index.ts</p>
  
  <pre><code>import Test from 'Test';
  
  const test = new Test();
  </code></pre>
  
  <p>./src/Test/index.ts</p>
  
  <pre><code>export default class Test {
      constructor () {
          console.log('Test');
      }
  }
  </code></pre>
  
  <p>./dist/index.js</p>
  
  <pre><code>"use strict";
  
  var _Test = _interopRequireDefault(require("Test"));
  
  function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; }
  
  var test = new _Test.default();
  </code></pre>
  
  <p>./package.json</p>
  
  <pre><code>{
    "version": "1.0.0",
    "description": "",
    "scripts": {
      "build": "babel ./src --extensions .ts,.js --out-dir ./dist",
      "start": "nodemon ./src --exec babel-node --extensions .ts,.js"
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "@babel/cli": "^7.0.0-beta.47",
      "@babel/core": "^7.0.0-beta.47",
      "@babel/node": "^7.0.0-beta.47",
      "@babel/plugin-proposal-class-properties": "^7.0.0-beta.47",
      "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.47",
      "@babel/polyfill": "^7.0.0-beta.47",
      "@babel/preset-env": "^7.0.0-beta.47",
      "@babel/preset-typescript": "^7.0.0-beta.47",
      "cross-env": "^5.1.5",
      "nodemon": "^1.17.4"
    }
  }
  </code></pre>
  
  <p>./tsconfig.json</p>
  
  <pre><code>{
      "compilerOptions": {
          "allowJs": true,
          "allowSyntheticDefaultImports": true,
          "baseUrl": ".",
          "experimentalDecorators": true,
          "forceConsistentCasingInFileNames": true,
          "lib": ["ES2015", "ES2017", "DOM"],
          "noEmit": true,
          "noImplicitAny": true,
          "noImplicitReturns": true,
          "noImplicitThis": true,
          "module": "esnext",
          "moduleResolution": "node",
          "paths": { "*":["node_modules/*", "src/*"] },
          "pretty": true,
          "strictNullChecks": true,
          "target": "es5",
          "typeRoots": ["./node_modules/@types"]
      }
  }
  </code></pre>
  
  <p>./.babelrc</p>
  
  <pre><code>{
      presets: ['@babel/preset-env', '@babel/preset-typescript'],
      plugins: ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-object-rest-spread']
  }
  </code></pre>