From 2c116205bb555d55671c8c058943d7023b8a588b Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 3 May 2021 07:48:37 -0700 Subject: [PATCH 1/2] exclude target directory from x-pack plugins when copying to dist --- x-pack/tasks/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/tasks/build.ts b/x-pack/tasks/build.ts index 1b52b073b3cef..ddb4d65f34f7b 100644 --- a/x-pack/tasks/build.ts +++ b/x-pack/tasks/build.ts @@ -76,6 +76,7 @@ async function copySourceAndBabelify() { '**/node_modules/**', '**/public/**/*.{js,ts,tsx,json}', '**/{__tests__,__mocks__,__snapshots__}/**', + 'plugins/target/**/*', 'plugins/canvas/shareable_runtime/test/**', 'plugins/telemetry_collection_xpack/schema/**', // Skip telemetry schemas ], From f495af83b8637575bf9ccb34a89183e2cf09f09e Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 3 May 2021 08:01:36 -0700 Subject: [PATCH 2/2] target dirs are not direct children of plugins --- x-pack/tasks/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/tasks/build.ts b/x-pack/tasks/build.ts index ddb4d65f34f7b..96ec1c22687d1 100644 --- a/x-pack/tasks/build.ts +++ b/x-pack/tasks/build.ts @@ -76,7 +76,7 @@ async function copySourceAndBabelify() { '**/node_modules/**', '**/public/**/*.{js,ts,tsx,json}', '**/{__tests__,__mocks__,__snapshots__}/**', - 'plugins/target/**/*', + 'plugins/*/target/**', 'plugins/canvas/shareable_runtime/test/**', 'plugins/telemetry_collection_xpack/schema/**', // Skip telemetry schemas ],