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(