<p dir="auto">When I use <code class="notranslate">npm</code> to install <code class="notranslate">bootstrap</code> package, I want to be able to use <code class="notranslate">require.resolve('bootstrap')</code> to get exact location (since it's not necessarily in <code class="notranslate">node_modules</code> of my package) on filesystem. Bootstrap <code class="notranslate">package.json</code> misses <code class="notranslate">main</code> section and <code class="notranslate">require.resolve('bootstrap')</code> doesn't work.</p>
<p dir="auto">I'm not creating pull request because I'm not sure about what file <code class="notranslate">main</code> section should point to. Either <code class="notranslate">dist/js/bootstrap.js</code> or specially created empty file like <code class="notranslate">dist/index.js</code> or even <code class="notranslate">dist/css/bootstrap.css</code>. Probably something else, but something enough for <code class="notranslate">require.resolve('bootstrap')</code> to work.</p>
<p dir="auto">Thanks.</p>
<p dir="auto">Great work on getting bootstrap onto npmjs.org.</p>
<p dir="auto">Maybe I am missing something but there is no main property defined in package.json.</p>
<p dir="auto">Currently I have to do this</p>
<p dir="auto">require('bootstrap/dist/js/bootstrap');</p>
<p dir="auto">but I would prefer to do this,</p>
<p dir="auto">require('bootstrap');</p>
<p dir="auto">Also, I currently have to do the following to meet the jquery dependency before requiring bootstrap.</p>
<p dir="auto">window.jQuery = $;</p>