silas/node-jenkins — pull request #5 by dominics (2014-07-24 00:32:52+00:00)
Title: Correct location to main file in package.json

When loading node-jenkins via NPM, the `main` location is incorrect, resulting in the module not being loaded. You can reproduce this behaviour:

```
mkdir sometest && cd sometest
npm init # and enter to all defaults
npm install jenkins --save
echo "require('jenkins');" > index.js
node index.js
```

You will probably get a `Cannot find module 'jenkins'` error. This is because the package.json points at just './jenkins' which, when used via a node_modules dir, becomes just `node_modules/jenkins/jenkins.js` rather than `node_modules/jenkins/lib/jenkins.js`.

This is also hinted at in the manual:
http://nodejs.org/api/modules.html#modules_folders_as_modules