mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
More conservative glob against dep tests
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
This commit is contained in:
parent
723f2916d1
commit
67358dcbda
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ module.exports = function (grunt) {
|
|||
return {
|
||||
build: 'build',
|
||||
target: 'target',
|
||||
testsFromModules: 'build/kibana/node_modules/**/*test*/**',
|
||||
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(',') + '}/',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue