Merge pull request #4974 from epixa/4928-pckjson
Remove package.json dependencies from distributions
This commit is contained in:
commit
822b9fcace
|
@ -13,6 +13,7 @@ module.exports = function (grunt) {
|
|||
'_build:packageJson',
|
||||
'_build:readme',
|
||||
'_build:installNpmDeps',
|
||||
'_build:removePkgJsonDeps',
|
||||
'clean:testsFromModules',
|
||||
'clean:deepModuleBins',
|
||||
'clean:deepModules',
|
||||
|
|
12
tasks/build/removePkgJsonDeps.js
Normal file
12
tasks/build/removePkgJsonDeps.js
Normal 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, ' ')
|
||||
);
|
||||
});
|
||||
};
|
Loading…
Reference in a new issue