Merge pull request #4974 from epixa/4928-pckjson

Remove package.json dependencies from distributions
This commit is contained in:
Matt Bargar 2015-09-18 15:35:27 -04:00
commit 822b9fcace
2 changed files with 13 additions and 0 deletions

View file

@ -13,6 +13,7 @@ module.exports = function (grunt) {
'_build:packageJson',
'_build:readme',
'_build:installNpmDeps',
'_build:removePkgJsonDeps',
'clean:testsFromModules',
'clean:deepModuleBins',
'clean:deepModules',

View file

@ -0,0 +1,12 @@
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, ' ')
);
});
};