chore(NA): add new platform discovered plugins as entry points to check for dependencies on clean dll tasks (#50610)

This commit is contained in:
Tiago Costa 2019-11-14 02:59:22 +00:00 committed by GitHub
parent 071656b908
commit 70c8a14eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,9 +49,18 @@ export const CleanClientModulesOnDLLTask = {
`${baseDir}/src/plugins/*/server/index.js`,
`!${baseDir}/src/plugins/**/public`
]);
const discoveredNewPlatformXpackPlugins = await globby([
`${baseDir}/x-pack/plugins/*/server/index.js`,
`!${baseDir}/x-pack/plugins/**/public`
]);
// Compose all the needed entries
const serverEntries = [ ...mainCodeEntries, ...discoveredLegacyCorePluginEntries, ...discoveredPluginEntries];
const serverEntries = [
...mainCodeEntries,
...discoveredLegacyCorePluginEntries,
...discoveredPluginEntries,
...discoveredNewPlatformXpackPlugins
];
// Get the dependencies found searching through the server
// side code entries that were provided