root directory for node module
<p>I have a pretty standard node module using babel to transpile our code which is then output to a 'lib' folder.  the package.json points 'main' to 'lib/index.js' so that people can just <code>require('my-module')</code></p>

<p>However, if I have a subdirectory (say my-module/server for example) then when they use my-module they have to do <code>require('my-module/lib/server')</code>.  I've seen people put post build steps that will copy package.json into lib, but that just feels hacky and wrong to me.  Is there any way in npm to specify a main <em>directory</em> whereby any require()'s of my module would start at that directory?  Then I can just have users do require('my-module/server') without the lib part...</p>