Skip to content

Commit

Permalink
Exclude all x-pack workspaces from OSS builds (#29124) (#29127)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tylersmalley authored Jan 22, 2019
1 parent 517b6dd commit 3ae2b81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/build/tasks/create_package_json_task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3ae2b81

Please sign in to comment.