<p dir="auto">Typically .env these files are small and manageable, but there are times when you run into situations where you duplicate the same data within the file. Here is an example:</p>
<p dir="auto">MAIL_USERNAME=<a href="mailto:hello@laravel-news.com">hello@laravel-news.com</a><br>
MAIL_FROM_ADDRESS=<a href="mailto:hello@laravel-news.com">hello@laravel-news.com</a></p>
<p dir="auto">The dotenv package that Laravel relies on can use variables with other defined variables in this same file. For example:</p>
<p dir="auto">MAIL_USERNAME=<a href="mailto:hello@laravel-news.com">hello@laravel-news.com</a><br>
MAIL_FROM_ADDRESS=${MAIL_USERNAME}</p>
<p dir="auto">This simple trick allows you not to repeat yourself and can be useful when you have multiple services requiring the same piece of data.</p>
<p dir="auto">I tried using this with the deno dotenv package and the deno standard library for env files and both parsers don't pick up the variable, intead the console log value in the MAIL_FROM_ADDRESS example above would be just ${MAIL_USERNAME} instead of <a href="mailto:hello@laravel-news.com">hello@laravel-news.com</a>.</p>
<p dir="auto">When running <code class="notranslate">deno info mod.ts</code> the printed <code class="notranslate">emit</code> field shows a path with a duplicate extension <code class="notranslate">.ts.js</code>. <code class="notranslate">mod.ts</code>contains just some re-exports:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// mod.ts
export { foo, bar, baz } from &quot;./mods/mod.ts&quot;"><pre class="notranslate"><span class="pl-c">// mod.ts</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">bar</span><span class="pl-kos">,</span> <span class="pl-s1">baz</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./mods/mod.ts"</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno info mod.ts
local: /mnt/c/Users/User/foo/bar/mod.ts
type: TypeScript
emit: /path/to/some/project/mod.ts.js
dependencies: 3 unique (total 11.42KB)"><pre class="notranslate"><code class="notranslate">deno info mod.ts
local: /mnt/c/Users/User/foo/bar/mod.ts
type: TypeScript
emit: /path/to/some/project/mod.ts.js
dependencies: 3 unique (total 11.42KB)
</code></pre></div>
<p dir="auto"><code class="notranslate">deno --version</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.13.2 (release, x86_64-unknown-linux-gnu)
v8 9.3.345.11
typescript 4.3.5"><pre class="notranslate"><code class="notranslate">deno 1.13.2 (release, x86_64-unknown-linux-gnu)
v8 9.3.345.11
typescript 4.3.5
</code></pre></div>