[build/x-pack] Exclude scss, test files and fixtures (#108986)

This commit is contained in:
Jonathan Budzenski 2021-08-17 17:17:29 -05:00 committed by GitHub
parent 0f0a33c737
commit e9136e2ce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,12 +70,13 @@ async function copySourceAndBabelify() {
buffer: true,
nodir: true,
ignore: [
'**/README.md',
'**/*.{md,asciidoc}',
'**/jest.config.js',
'**/*.{test,test.mocks,mock,mocks}.*',
'**/*.d.ts',
'**/node_modules/**',
'**/public/**/*.{js,ts,tsx,json}',
'**/{__tests__,__mocks__,__snapshots__}/**',
'**/public/**/*.{js,ts,tsx,json,scss}',
'**/{__tests__,__mocks__,__snapshots__,__fixtures__,__jest__,cypress}/**',
'plugins/*/target/**',
'plugins/canvas/shareable_runtime/test/**',
'plugins/telemetry_collection_xpack/schema/**', // Skip telemetry schemas