Woops,  This whole line is probably not platform independent and could
probably be replaced with

    VERSION = node --exec "console.log(require('./package.json').version);"

Or whatever the exact line command is
On Mar 19, 2014 4:12 PM, "Vladimir Agafonkin" <notifications@github.com>
wrote:

> In build/publish.sh:
>
> > @@ -0,0 +1,32 @@
> > +#!/bin/bash
> > +
> > +#make sure deps are up to date
> > +rm -r node_modules
> > +npm install
> > +
> > +# get current version
> > +VERSION=$(npm ls --json=true pouchdb | grep version | awk '{ print $2}'| sed -e 's/^"//'  -e 's/"$//')
>
> pouchdb referenced
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Leaflet/Leaflet/pull/2561/files#r10769127>
> .
>