From 3ae2b81acc3d87e254d9f0e89d56cc71e69741fb Mon Sep 17 00:00:00 2001 From: Tyler Smalley Date: Tue, 22 Jan 2019 12:24:10 -0800 Subject: [PATCH] Exclude all x-pack workspaces from OSS builds (#29124) (#29127) 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 9018cbbce8a47..9a1f6137af6f1 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(