From b33cad4f0ad8b00ec7ddc2ee931b90438ef2fb58 Mon Sep 17 00:00:00 2001 From: Josh Dover Date: Tue, 22 Jan 2019 12:51:35 -0600 Subject: [PATCH] Exclude all x-pack workspaces from OSS builds (#29124) Filters out any x-pack workspaces from OSS builds. Fixes an issue introduced by #22618 that was causing the Infra plugin code to be included in the node_modules for OSS builds. --- src/dev/build/tasks/create_package_json_task.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/build/tasks/create_package_json_task.js b/src/dev/build/tasks/create_package_json_task.js index 9018cbbce8a472..9a1f6137af6f17 100644 --- a/src/dev/build/tasks/create_package_json_task.js +++ b/src/dev/build/tasks/create_package_json_task.js @@ -50,7 +50,7 @@ export const CreatePackageJsonTask = { if (build.isOss()) { delete newPkg.dependencies['x-pack']; - newPkg.workspaces.packages = newPkg.workspaces.packages.filter(p => p !== 'x-pack'); + newPkg.workspaces.packages = newPkg.workspaces.packages.filter(p => !p.startsWith('x-pack')); } await write(