title: Same module/package for Bower and npm
body: <p>Is there a way to write a <strong>single</strong> module/package that can be posted both to <strong>npm</strong> and <strong>Bower</strong>, without having to duplicate files?</p>
  
  <p>Imagine you have a simple JS file with some code that is self-contained (i.e. it doesn't have any external dependencies).</p>
  
  <p>An ideal directory would look something like:</p>
  
  <pre><code>/file.js
  /package.json
  /bower.json
  </code></pre>
  
  <p>The problem in this case is that "file.js" to work with npm would need a <code>module.exports</code> statement, whereas this would not work with Bower.</p>
  
  <p>So, is there a way to avoid producing two separate almost identical files?</p>