node4 support: const -> var

Original commit: elastic/kibana-plugin-helpers@19b607d954
This commit is contained in:
Joe Fleming 2016-12-16 18:14:28 -07:00
parent 5bc1308422
commit 269bdc45e2

View file

@ -88,7 +88,7 @@ module.exports = function (plugin) {
// modify the package.json file
.pipe(map(function (file) {
if (file.basename === 'package.json') {
const pkg = JSON.parse(file.contents.toString('utf8'));
var pkg = JSON.parse(file.contents.toString('utf8'));
// rewrite the target kibana version while the
// file is on it's way to the archive