Skip to content

Commit

Permalink
Exclude all x-pack workspaces from OSS builds (elastic#29124)
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 elastic#22618 that was causing the Infra plugin code to be included in the node_modules for OSS builds.
  • Loading branch information
joshdover authored and Tyler Smalley committed Jan 22, 2019
1 parent 517b6dd commit 5f53053
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 5f53053

Please sign in to comment.