mirror of
https://github.com/elastic/kibana.git
synced 2025-04-21 08:19:33 -04:00
When creating builds, we were using a glob that was too liberal in its matching to identify and clean test files in our dependencies in order to shave some bytes off of our final build. We now only remove files or directories that outright match either "test" or "tests" rather than any file or directory that even includes the word "test" in it. Fixes #5636
10 lines
422 B
JavaScript
10 lines
422 B
JavaScript
module.exports = function (grunt) {
|
|
let modules = Object.keys(grunt.config.get('deepModules'));
|
|
return {
|
|
build: 'build',
|
|
target: 'target',
|
|
testsFromModules: 'build/kibana/node_modules/**/{test,tests}/**',
|
|
deepModuleBins: 'build/kibana/node_modules/*/node_modules/**/.bin/{' + modules.join(',') + '}',
|
|
deepModules: 'build/kibana/node_modules/*/node_modules/**/{' + modules.join(',') + '}/',
|
|
};
|
|
};
|