<p dir="auto">JavaScript file at <a href="https://deno.land/x/once/index.js" rel="nofollow">https://deno.land/x/once/index.js</a> has a Triple-Slash Directive that define location of TypeScript definition:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference types=&quot;./index.d.ts&quot; /&gt;"><pre class="notranslate"><span class="pl-c">/// &lt;reference types="./index.d.ts" /&gt;</span></pre></div>
<p dir="auto">When I run <code class="notranslate">deno fetch --reload https://deno.land/x/once/index.js</code>, I expect Deno to also fetch <code class="notranslate">index.d.ts</code> but it does not.</p>
<hr>
<p dir="auto">This issue was suspected to be the cause of <a href="https://github.com/axetroy/vscode-deno/issues/102">https://github.com/axetroy/vscode-deno/issues/102</a>.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno fetch https://cdn.pika.dev/date-fns
Download https://cdn.pika.dev/date-fns
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/date-fns.js"><pre class="notranslate">$ deno fetch https://cdn.pika.dev/date-fns
Download https://cdn.pika.dev/date-fns
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/date-fns.js</pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ deno run mod.ts
Compile file:///Users/name/gpm/github.com/axetroy/deno_dnx/mod.ts
Download https://cdn.pika.dev/date-fns
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/date-fns.js
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/types/index.d.ts
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/types/index.d.ts"><pre class="notranslate">$ deno run mod.ts
Compile file:///Users/name/gpm/github.com/axetroy/deno_dnx/mod.ts
Download https://cdn.pika.dev/date-fns
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/date-fns.js
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/types/index.d.ts
Download https://cdn.pika.dev/-/date-fns@v2.9.0-si0G7GvbRjRynVZsHhan/dist=es2019/types/index.d.ts</pre></div>