Test (pre)version scripts
$ npm version 2.0.0
> [email protected] preversion /tmp/test
> ./check.js
{ envVersion: '2.0.0', pkgVersion: '1.2.3' }
v2.0.0
> [email protected] version /tmp/test
> ./check.js
{ envVersion: '2.0.0', pkgVersion: '2.0.0' }