isaacs/npm — Issue #2099: npm publish sends the wrong files
Author: ceymard
Created: 2012-01-28 11:41:05+00:00
State: open

I have *no* idea what's going on.

I have a project in coco (node-jinjs, here on github) that I compile to javascript.

In my package.json, I explicitely say that I want lib :

```javascript
"directories" : { "lib" : "./lib" },
"bin": {
"jinjs": "./lib/command.js"
},
```

yet when publishing, npm sends everything in my folder *EXCEPT* lib, which makes it all fail quite miserably when installing.

I had to create an empty folder, copy package.json and lib/ there and only then did it work.

```
npm --version
1.1.0-3

node --version
v0.6.9
```