title: Outputting compiled babel files to the same folder level
body: <p>How do I output compiled babel files in the same level as the files. I currently have my script to read the source folder and output the compiled file in a separate folder that retains the folder structure using the code in my package.json</p>
  
  <pre><code>  "build:lib": "./node_modules/.bin/babel src/components/ --out-dir lib",
  </code></pre>
  
  <p>say I have a react component in src/components/Button/Button.js. I want to compile the minified version in src/components/Button/Button.minified.js </p>