mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 08:49:27 -04:00
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
26 lines
622 B
JavaScript
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, ' ')
|
|
);
|
|
});
|
|
};
|