That too
On Mar 19, 2014 5:09 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/"$//')
>
> You could just do
>
> require('./src/Leaflet.js').version
>
> Like in Jakefile.js
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Leaflet/Leaflet/pull/2561/files#r10771715>
> .
>