lukaszb/pypi — Issue #1: Main package index error
Author: stupergenius
Created: 2011-11-08 19:17:03+00:00
State: open

There's a line in the package.json that didn't work for my environment:
Ubuntu 11.10
Node 0.4.9 (from apt)
npm 0.2.19

It throws an error like:
```
Error: Cannot find module './../.npm/pypi/0.1.0/package/.index'
at Function._resolveFilename (module.js:317:11)
at Function._load (module.js:262:25)
at require (module.js:346:19)
#!/usr/bin/env node
at Object. (/home/ben/.node_libraries/pypi@0.1.0/index.js:11:18)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at require (module.js:346:19)
at Object. (/home/ben/sources/hubot-scripts/src/scripts/pypi.coffee:3:10)
```
I believe it is caused by the line `"main" : ".index",`. Changing it to ``"main" : "index",` works. It seems the dot breaks the index import.