title: Is it possible to specify paths from project root in aurelia view models?
body: <p>I'm fairly new to Aurelia so please be gentle with me if this is an obvious question or even something one should not consider doing. From reading the documentation and various resources on the web this does not seem to be addressed anywhere.</p>
  
  <p>As my project increased in size I restructured folders and files. While refactoring it felt a bit cumbersome, as to check the correct depth of the path, and also when I moved view models I needed to change the import path as well.</p>
  
  <p>Currently I need to import certain files in my view models as:</p>
  
  <pre><code>import {log} from './../../services/log';
  </code></pre>
  
  <p>What I would find more comfortable would be to have a relative path starting from the root of the project like:</p>
  
  <pre><code>import {log} from 'services/log'; 
  </code></pre>
  
  <p>Is there anything I'm missing or simply not understanding? I know that with the ./ the relative path from the current file is specified.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I tried the same with the Aurelia Contact Manager Tutorial where all files in the src folder are on the same level. If I move the 'wep-api.ts' file into a 'src/services' folder and want to import that file from a viewmodel inside 'src/components/users' I need to use the import as </p>
  
  <pre><code>import {WebAPI} from './../../services/web-api';
  </code></pre>
  
  <p>It does not seem to work with only 'services/web-api' and the error is </p>
  
  <pre><code>[ts] cannot find module 'services/web-api'
  </code></pre>
  
  <p>The aurelia.json file includes </p>
  
  <pre><code>"paths": {
      "root": "src", ...
  </code></pre>