Skip to content

Commit

Permalink
Merge pull request #7473 from elastic/jasper/backport/7458/4.x
Browse files Browse the repository at this point in the history
[backport] PR #7458 to 4.x
  • Loading branch information
jbudz authored Jun 15, 2016
2 parents 9730592 + 00cc365 commit cfb2f4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/build/babel_cache.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default function (grunt) {
grunt.registerTask('_build:babelCache', function () {
//When running from built packages, if a plugin is installed before babelcache
//exists it can become owned by root. This causes server startup to fail because
//the optimization process can't write to .babelcache.json.
grunt.file.write('build/kibana/optimize/.babelcache.json', '{}\n');
});
};
1 change: 1 addition & 0 deletions tasks/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = function (grunt) {
'_build:installedPlugins',
'_build:packageJson',
'_build:readme',
'_build:babelCache',
'_build:installNpmDeps',
'_build:removePkgJsonDeps',
'clean:testsFromModules',
Expand Down

0 comments on commit cfb2f4f

Please sign in to comment.