summaryrefslogtreecommitdiffhomepage
path: root/pkg/npm
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2019-02-27 17:25:28 +0300
committerValentin Bartenev <vbart@nginx.com>2019-02-27 17:25:28 +0300
commit5c9fe8c3060f8204b143abae6d81ee8363aba060 (patch)
treed081751adf7ef353ea865468168512e600fb94b1 /pkg/npm
parente929d08201aae949db25ae8c1051a91e96ba3011 (diff)
downloadunit-5c9fe8c3060f8204b143abae6d81ee8363aba060.tar.gz
unit-5c9fe8c3060f8204b143abae6d81ee8363aba060.tar.bz2
Added trailing zero to version string.
While it looks nicer without zero 3-rd version number, this should improve interoperability. Version string can be parsed or used for sorting. And it is easier to handle and less confusing when there is constant number of version parts. Moreover, NPM also expects version format with 3 parts. So ".0" has already been used in Node.js module version.
Diffstat (limited to 'pkg/npm')
-rw-r--r--pkg/npm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/npm/Makefile b/pkg/npm/Makefile
index 8636dd0b..ef8ef7b5 100644
--- a/pkg/npm/Makefile
+++ b/pkg/npm/Makefile
@@ -13,7 +13,7 @@ copy:
cp -rp ../../src/nodejs/unit-http .
echo '#define NXT_NODE_VERNUM ${VERNUM}' > unit-http/version.h
mv unit-http/binding_pub.gyp unit-http/binding.gyp
- sed -e 's/"version"\s*:.*/"version": "${VERSION}.0",/' \
+ sed -e 's/"version"\s*:.*/"version": "${VERSION}",/' \
unit-http/package.json > unit-http/package.json.tmp
mv unit-http/package.json.tmp unit-http/package.json