kibana/tasks/build/package_json.js
jasper 5cb1e20341 build: remove deepModules hackery (#9328)
Backports PR #9327

**Commit 1:**
build: remove deepModules hackery

The deepModules hacks in the build system were added to support the long
paths that resulted from npm2, but npm3 fundamentally addresses that
problem, so deepModules is no longer necessary. In practical terms, npm3
shouldn't ever cause path lengths to become so long that they trigger
path length problems on certain operating systems.

* Original sha: 19fcc93ad3
* Authored by Court Ewing <court@epixa.com> on 2016-12-02T00:13:13Z
2016-12-01 19:56:48 -05:00

26 lines
622 B
JavaScript

module.exports = function (grunt) {
let 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, ' ')
);
});
};