mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
The kibana app itself requires that package.json exist, so removing it entirely from distributions is a no go. Instead, we remove only the dependencies themselves from the package.json so people do not try to reinstall dependencies on an official distribution.
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
module.exports = function (grunt) {
|
|
grunt.registerTask('_build:removePkgJsonDeps', function () {
|
|
const pkg = grunt.file.readJSON('build/kibana/package.json');
|
|
|
|
delete pkg.dependencies;
|
|
|
|
grunt.file.write(
|
|
'build/kibana/package.json',
|
|
JSON.stringify(pkg, null, ' ')
|
|
);
|
|
});
|
|
};
|