* [eslint] enable no-var and autofix * [eslint] enable prefer-const and autofix * [eslint] fix autofix-incompatible no-var and prefer-const violations
26 lines
624 B
JavaScript
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, ' ')
|
|
);
|
|
});
|
|
};
|