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.
This commit is contained in:
Josh Dover 2019-01-22 12:51:35 -06:00 committed by Tyler Smalley
parent c37cf1eab2
commit 72c2f7839b

View file

@ -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(