title: Importing package.json in typescript file: 'require' call may be converted to an import
body: <p>I'm setting up a class whereby I'm directly importing the package version number into the class as follows:</p>
  <pre class="lang-js prettyprint-override"><code>const pkg = require('../package.json')
  
  export class MyClass() {
      constructor() {
          // Set the base version from package.json:
          this.version = pkg.version
      }
  }
  </code></pre>
  <p>However, I'm currently getting a little friendly warning from the Typescript ghost in the machine saying that &quot;'require' call may be converted to an import.&quot;</p>
  <p>I'm assuming that yes it may be possible, but not with a .json file?</p>
  <p>Perhaps I should be asking what the best practise for importing a package.json in a .ts file?</p>