grncdr/uri-template — pull request #5 by evdb (2013-03-20 08:18:53+00:00)
Title: Change to publishing (current npm package broken)

If you try the following it fails with `0.3.3`:

```bash
evdb@custard $ npm install uri-template
npm http GET https://registry.npmjs.org/uri-template
npm http 304 https://registry.npmjs.org/uri-template
uri-template@0.3.3 node_modules/uri-template
```
```bash
evdb@custard $ node -e "require('uri-template');"

module.js:340
throw err;
^
Error: Cannot find module 'uri-template'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at [eval]:1:1
at Object. ([eval]-wrapper:6:22)
at Module._compile (module.js:449:26)
at evalScript (node.js:282:25)
at startup (node.js:76:7)
at node.js:627:3
```
I believe that somewhere in the packaging `parser.js` got omitted:

``` bash
evdb@custard $ find node_modules/uri-template
node_modules/uri-template
node_modules/uri-template/package.json
node_modules/uri-template/README.md
node_modules/uri-template/test.js
```

This is all probably linked to isaacs/npm#3059 which I see you [commented on](https://github.com/isaacs/npm/issues/3059#issuecomment-13054391).

The attached change moves the pre-publish step into the make file so you'd publish by running `make publish`. I've not bumped the version number.

(oh - and I tweaked the example code in the readme)

Yours,
Edmund.