From d505ac4701ab00d6fc21eb587b26893cf000b708 Mon Sep 17 00:00:00 2001
From: Spencer <email@spalger.com>
Date: Wed, 7 Oct 2020 13:46:01 -0700
Subject: [PATCH] [7.10] [build] only strip public code, leave other assets
 (#79504) (#79899)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
---
 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 a3b08a16f4b08..aaeea9d14e385 100644
--- a/x-pack/tasks/build.ts
+++ b/x-pack/tasks/build.ts
@@ -73,7 +73,7 @@ async function copySourceAndBabelify() {
           '**/*.{test,test.mocks,mock,mocks}.*',
           '**/*.d.ts',
           '**/node_modules/**',
-          '**/public/**',
+          '**/public/**/*.{js,ts,tsx,json}',
           '**/{__tests__,__mocks__,__snapshots__}/**',
           'plugins/canvas/shareable_runtime/test/**',
         ],