From 6bdb01eb465e8fa9c5771aa6330b4f7d833e2b14 Mon Sep 17 00:00:00 2001 From: Spencer Date: Mon, 5 Oct 2020 11:47:06 -0700 Subject: [PATCH] [build] only strip public code, leave other assets (#79504) Co-authored-by: spalger --- 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/**', ],