Exclude all x-pack workspaces from OSS builds (#29124) (#29126)

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:
Tyler Smalley 2019-01-22 12:24:15 -08:00 committed by GitHub
parent a572853d55
commit 311f757580
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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(