<p dir="auto">I'm using babel to compile src/ to lib/. I have <code class="notranslate">src/cli/somecli.js</code> which is <code class="notranslate">chmod u+x</code> but babel doesn't preserve that permission which means I can't do <code class="notranslate">./lib/cli/somecli.js</code> in bash. Would be nice if there was an option to tell babel to preserve that permission.</p>
<p dir="auto">When I do:</p>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="babel -w -d dist src"><pre class="notranslate"><span class="pl-c1">babel -w -d dist src</span></pre></div>
<p dir="auto">I expect dist/bin.js to have the same permissions as src/bin.js (specifically, executable bit)</p>
<p dir="auto">In actuality, the permissions are not preserved.</p>