diff --git a/src/dev/build/tasks/index.ts b/src/dev/build/tasks/index.ts index 0a3a67313d6a4..4c00e56faee6b 100644 --- a/src/dev/build/tasks/index.ts +++ b/src/dev/build/tasks/index.ts @@ -27,7 +27,6 @@ export * from './create_archives_task'; export * from './create_empty_dirs_and_files_task'; export * from './create_package_json_task'; export * from './create_readme_task'; -export * from './install_chromium'; export * from './install_dependencies_task'; export * from './license_file_task'; export * from './nodejs'; @@ -41,3 +40,6 @@ export * from './transpile_scss_task'; export * from './uuid_verification_task'; export * from './verify_env_task'; export * from './write_sha_sums_task'; + +// @ts-expect-error this module can't be TS because it ends up pulling x-pack into Kibana +export { InstallChromium } from './install_chromium'; diff --git a/src/dev/build/tasks/install_chromium.ts b/src/dev/build/tasks/install_chromium.js similarity index 94% rename from src/dev/build/tasks/install_chromium.ts rename to src/dev/build/tasks/install_chromium.js index 9aa228d43a331..3ae36d1615ccd 100644 --- a/src/dev/build/tasks/install_chromium.ts +++ b/src/dev/build/tasks/install_chromium.js @@ -22,9 +22,7 @@ import { first } from 'rxjs/operators'; // eslint-disable-next-line @kbn/eslint/no-restricted-paths import { installBrowser } from '../../../../x-pack/plugins/reporting/server/browsers/install'; -import { Task } from '../lib'; - -export const InstallChromium: Task = { +export const InstallChromium = { description: 'Installing Chromium', async run(config, log, build) { @@ -36,7 +34,7 @@ export const InstallChromium: Task = { const { binaryPath$ } = installBrowser( // TODO: https://github.com/elastic/kibana/issues/72496 - log as any, + log, build.resolvePathForPlatform(platform, 'x-pack/plugins/reporting/chromium'), platform.getName(), platform.getArchitecture()