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.
This commit is contained in:
Tyler Smalley 2019-01-22 12:24:10 -08:00 committed by GitHub
parent 517b6dd631
commit 3ae2b81acc
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(