title: How to get the version from the package.json in Typescript?
body: <p>I have found <a href="https://stackoverflow.com/q/9153571/2777965">this Q&amp;A</a>.</p>
  
  <p>I have tried to get the version from the package.json using:</p>
  
  <pre><code>import { version } from './package.json';
  </code></pre>
  
  <p>but it results in:</p>
  
  <pre><code>package.json' has unsupported extension. The only supported extensions are '.ts',
  '.tsx', '.d.ts'.
  </code></pre>