title: Unknown file extension ".ts" error appears when trying to run a ts-node script
body: <p>I'm trying to run a script created in a regular folder with two .ts files. One with the script and one with helper functions to run it. I'm also importing more things such as axios or form-data.</p>
  <p>The thing is that when I try to run the script with ts-node: <em>node script.ts</em>, the following error appears:</p>
  <pre><code>TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension &quot;.ts&quot;
  </code></pre>
  <p>My package.json:</p>
  <pre><code>{
    &quot;dependencies&quot;: {
      &quot;@types/node&quot;: &quot;^17.0.23&quot;,
      &quot;axios&quot;: &quot;^0.26.1&quot;,
      &quot;form-data&quot;: &quot;^4.0.0&quot;,
      &quot;showdown&quot;: &quot;^2.0.3&quot;,
      &quot;ts-node&quot;: &quot;^10.7.0&quot;,
      &quot;typescript&quot;: &quot;^4.6.3&quot;
    },
    &quot;type&quot;: &quot;module&quot;
  }
  </code></pre>
  <p>And my tsconfig.json:</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;esModuleInterop&quot;: true
    },
    &quot;include&quot;: [&quot;/**/*.ts&quot;],
    &quot;exclude&quot;: [&quot;node_modules&quot;]
  }
  </code></pre>
  <p>My imports in the script.ts file are:</p>
  <pre><code>import { datoManagementPrimaryEnvironment } from &quot;./content.management&quot;;
  import {
    createContent,
    uploadToCloudfare,
    getEntryFromDatoWithTheId,
    getFilters,
  } from &quot;./helpers&quot;;
  </code></pre>
  <p>and in helpers.ts:</p>
  <pre><code>import { datoManagementPrimaryEnvironment } from &quot;./content.management&quot;;
  import axios from &quot;axios&quot;;
  import FormData from &quot;form-data&quot;;
  var showdown = require(&quot;showdown&quot;);
  </code></pre>
  <p>Does anyone know what I'm doing wrong? thanks!</p>