kibana/tasks/build/package_json.js
Spencer 2f6654bcec [eslint] re-enable no-var and prefer-const (#9455)
* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations
2016-12-13 10:44:27 -07:00

26 lines
624 B
JavaScript

module.exports = function (grunt) {
const pkg = grunt.config.get('pkg');
grunt.registerTask('_build:packageJson', function () {
const { sha, number, version } = grunt.config.get('build');
grunt.file.write(
'build/kibana/package.json',
JSON.stringify({
name: pkg.name,
description: pkg.description,
keywords: pkg.keywords,
version,
build: {
number,
sha
},
repository: pkg.repository,
engines: {
node: pkg.engines.node
},
dependencies: pkg.dependencies
}, null, ' ')
);
});
};