title: Can't compile ts to js, can't find module 'protractor'
body: <p>Can't compile ts to js, can't find module 'protractor'
  I have installed Protractor, typescript, jasmine with type locally.</p>
  
  <p>src <br>
  projects/protractor<br>
  projects/tests<br>
  projects/pages  (import { ElementFinder, browser, element, by, protractor } from 'protractor';)<br>
  specs</p>
  
  <p>tsconfig.js</p>
  
  <pre><code>{
      "compilerOptions": {
          "sourceMap": false,
          "target": "es6",
          "moduleResolution": "node"
          "baseUrl": ".",
           "paths": {
               "protractor": [
                   "./projects"
               ]
           },
           "traceResolution": true
      },
      "module": "commonjs",
      "include": [
          "./Swc.Portal.Site/**/*.ts"
      ],
      "exclude": [
          "node_modules"
      ]
  }
  </code></pre>
  
  <p>protractorConf.js</p>
  
  <pre><code>exports.config = {
      seleniumServerJar: 'node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-2.47.1.jar',
      chromeDriver: 'node_modules/chromedriver/chromedriver',
      allScriptsTimeout: 20000,
  
      capabilities: {
          'browserName': 'chrome'
      },
  
      framework: 'jasmine2',
  
      jasmineNodeOpts: {
          showColors: true,
          defaultTimeoutInterval: 90000
      },
  
      onPrepare: function() {
          var specs = browser.params.specs;
          let globals = require('protractor');
          let browser = globals.browser;
              browser.driver.manage().window().maximize();
      }
  };
  </code></pre>
  
  <p>I can't put the protractor in the same directory as the tests, I need to solve the issue with import not relative paths</p>