mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[build] Clear the node version used to optimize (#15264)
This commit is contained in:
parent
e169dd3a2c
commit
999911b9a7
3 changed files with 4 additions and 2 deletions
|
@ -20,9 +20,10 @@ module.exports = function (grunt) {
|
|||
'_build:removePkgJsonDeps',
|
||||
'clean:testsFromModules',
|
||||
'clean:examplesFromModules',
|
||||
'_build:copyNode',
|
||||
'_build:copyNodeForOptimize',
|
||||
'run:optimizeBuild',
|
||||
'stop:optimizeBuild',
|
||||
'clean:nodeForOptimize',
|
||||
'_build:versionedLinks',
|
||||
'_build:osShellScripts',
|
||||
grunt.option('skip-archives') ? [] : ['_build:archives'],
|
||||
|
|
|
@ -4,7 +4,7 @@ import { platform as getPlatform } from 'os';
|
|||
module.exports = function (grunt) {
|
||||
const exec = require('../utils/exec').silent;
|
||||
|
||||
grunt.registerTask('_build:copyNode', function () {
|
||||
grunt.registerTask('_build:copyNodeForOptimize', function () {
|
||||
const rootPath = grunt.config.get('root');
|
||||
const nodeDestination = join(rootPath, 'build/kibana/node');
|
||||
const currentPlatform = getPlatform();
|
||||
|
|
|
@ -5,5 +5,6 @@ module.exports = function () {
|
|||
testsFromModules: 'build/kibana/node_modules/**/{test,tests}/**',
|
||||
examplesFromModules: 'build/kibana/node_modules/**/{example,examples}/**',
|
||||
devSourceForTestbed: 'build/kibana/src/core_plugins/testbed/',
|
||||
nodeForOptimize: 'build/kibana/node'
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue