From e0a49d28dd430d722091c415f374cc788676e891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Tue, 30 Jul 2024 16:50:18 +0200 Subject: [PATCH 1/2] [Move `@kbn/config-schema` to server] `@kbn/config` --- packages/kbn-config/kibana.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-config/kibana.jsonc b/packages/kbn-config/kibana.jsonc index c6b4d1dc742c..f16969225e90 100644 --- a/packages/kbn-config/kibana.jsonc +++ b/packages/kbn-config/kibana.jsonc @@ -1,5 +1,5 @@ { - "type": "shared-common", + "type": "shared-server", "id": "@kbn/config", "owner": "@elastic/kibana-core" } From 5b435f04368d8d1887b9e4a45a58d89998cc353f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Tue, 30 Jul 2024 17:59:28 +0200 Subject: [PATCH 2/2] Fix imports --- packages/core/base/core-base-common/src/plugins.ts | 2 +- .../maps_ems/public/lazy_load_bundle/create_ems_client.ts | 2 +- src/plugins/maps_ems/public/lazy_load_bundle/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/base/core-base-common/src/plugins.ts b/packages/core/base/core-base-common/src/plugins.ts index 3fbd7bcefbff..d51ba4a88b0d 100644 --- a/packages/core/base/core-base-common/src/plugins.ts +++ b/packages/core/base/core-base-common/src/plugins.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { ConfigPath } from '@kbn/config'; +import type { ConfigPath } from '@kbn/config'; /** * Dedicated type for plugin name/id that is supposed to make Map/Set/Arrays diff --git a/src/plugins/maps_ems/public/lazy_load_bundle/create_ems_client.ts b/src/plugins/maps_ems/public/lazy_load_bundle/create_ems_client.ts index b86f674b6be2..fb700e2607c5 100644 --- a/src/plugins/maps_ems/public/lazy_load_bundle/create_ems_client.ts +++ b/src/plugins/maps_ems/public/lazy_load_bundle/create_ems_client.ts @@ -9,7 +9,7 @@ import coerce from 'semver/functions/coerce'; import { ELASTIC_HTTP_VERSION_HEADER } from '@kbn/core-http-common'; -import { BuildFlavor } from '@kbn/config/src/types'; +import type { BuildFlavor } from '@kbn/config'; import { i18n } from '@kbn/i18n'; import { EMSClient } from '@elastic/ems-client'; import { EMS_APP_NAME, EMSSettings, DEFAULT_EMS_REST_VERSION } from '../../common'; diff --git a/src/plugins/maps_ems/public/lazy_load_bundle/index.ts b/src/plugins/maps_ems/public/lazy_load_bundle/index.ts index 20e539326b3f..a20da86b1af7 100644 --- a/src/plugins/maps_ems/public/lazy_load_bundle/index.ts +++ b/src/plugins/maps_ems/public/lazy_load_bundle/index.ts @@ -7,7 +7,7 @@ */ import type { EMSClient } from '@elastic/ems-client'; -import { BuildFlavor } from '@kbn/config/src/types'; +import type { BuildFlavor } from '@kbn/config'; import type { EMSSettings } from '../../common'; let lazyLoaded: (emsSettings: EMSSettings, version: string, buildFlavor: BuildFlavor) => EMSClient;