From 60d378b893b522f37df0155460c4a382b1f615b7 Mon Sep 17 00:00:00 2001 From: Michael Dokolin Date: Tue, 31 Dec 2024 19:01:38 +0100 Subject: [PATCH] [8.x] Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-operations` (#202739) (#205320) # Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-operations` (#202739)](https://github.com/elastic/kibana/pull/202739) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Gerard Soldevila --- .../pipelines/pull_request/pipeline.ts | 4 +-- .github/CODEOWNERS | 18 +++++----- .gitignore | 4 +-- kbn_pm/src/lib/bazel.mjs | 4 +-- kbn_pm/src/lib/external_packages.js | 2 +- package.json | 18 +++++----- .../src/bootstrap/get_theme_tag.ts | 2 +- packages/kbn-babel-register/BUILD.bazel | 6 ++-- .../src/helpers/groups.ts | 2 +- packages/kbn-monaco/BUILD.bazel | 2 +- .../src/tasks/bazel_packages.ts | 4 +-- src/dev/build/tasks/build_packages_task.ts | 4 +-- .../private}/kbn-repo-packages/BUILD.bazel | 0 .../private}/kbn-repo-packages/README.md | 0 .../private}/kbn-repo-packages/index.js | 0 .../private/kbn-repo-packages}/jest.config.js | 4 +-- .../private}/kbn-repo-packages/kibana.jsonc | 0 .../kbn-repo-packages/legacy/find_files.js | 0 .../kbn-repo-packages/legacy/index.js | 0 .../legacy/load_json_file.js | 0 .../legacy/parse_kibana_platform_plugin.js | 0 ...simple_kibana_platform_plugin_discovery.js | 0 .../kbn-repo-packages/legacy/types.ts | 0 .../modern/get_git_repo_root.js | 0 .../kbn-repo-packages/modern/get_packages.js | 0 .../kbn-repo-packages/modern/get_repo_rels.js | 0 .../kbn-repo-packages/modern/package.js | 0 .../kbn-repo-packages/modern/parse_helpers.js | 0 .../modern/parse_kbn_import_req.js | 0 .../modern/parse_package_json.js | 0 .../modern/parse_package_manifest.js | 0 .../modern/plugin_category_info.js | 0 .../kbn-repo-packages/modern/plugins.js | 0 .../kbn-repo-packages/modern/types.ts | 0 .../private}/kbn-repo-packages/package.json | 0 .../private}/kbn-repo-packages/tsconfig.json | 2 +- .../private}/kbn-repo-packages/utils/async.js | 0 .../kbn-repo-packages/utils/async.test.ts | 0 .../kbn-repo-packages/utils/find_files.js | 0 .../private}/kbn-repo-packages/utils/jsonc.js | 0 .../utils/strip_json_comments.js | 0 .../kbn-ui-shared-deps-npm/BUILD.bazel | 2 +- .../kbn-ui-shared-deps-npm/README.mdx | 0 .../private}/kbn-ui-shared-deps-npm/index.js | 0 .../kbn-ui-shared-deps-npm/kibana.jsonc | 0 .../kbn-ui-shared-deps-npm/package.json | 0 .../src/public_path_loader.js | 0 .../src/public_path_module_creator.js | 0 .../kbn-ui-shared-deps-npm/tsconfig.json | 2 +- .../kbn-ui-shared-deps-npm/webpack.config.js | 2 +- .../kbn-ui-shared-deps-src/BUILD.bazel | 6 ++-- .../kbn-ui-shared-deps-src/README.mdx | 0 .../private}/kbn-ui-shared-deps-src/index.ts | 0 .../kbn-ui-shared-deps-src/kibana.jsonc | 0 .../kbn-ui-shared-deps-src/package.json | 0 .../kbn-ui-shared-deps-src/src/definitions.js | 0 .../kbn-ui-shared-deps-src/src/entry.js | 1 + .../kbn-ui-shared-deps-src/src/polyfills.js | 0 .../kbn-ui-shared-deps-src/tsconfig.json | 2 +- .../kbn-ui-shared-deps-src/webpack.config.js | 2 +- .../packages/shared}/kbn-cbor/README.md | 0 .../packages/shared}/kbn-cbor/index.test.ts | 0 .../packages/shared}/kbn-cbor/index.ts | 0 .../packages/shared}/kbn-cbor/jest.config.js | 4 +-- .../packages/shared}/kbn-cbor/kibana.jsonc | 0 .../packages/shared}/kbn-cbor/package.json | 0 .../packages/shared}/kbn-cbor/tsconfig.json | 4 +-- .../shared}/kbn-repo-info/BUILD.bazel | 0 .../packages/shared}/kbn-repo-info/README.md | 0 .../packages/shared}/kbn-repo-info/index.js | 0 .../shared}/kbn-repo-info/jest.config.js | 4 +-- .../shared}/kbn-repo-info/kibana.jsonc | 0 .../shared}/kbn-repo-info/package.json | 0 .../shared}/kbn-repo-info/tsconfig.json | 2 +- .../packages/shared}/kbn-repo-info/types.ts | 0 .../packages/shared}/kbn-rison/BUILD.bazel | 0 .../packages/shared}/kbn-rison/README.md | 0 .../packages/shared}/kbn-rison/index.ts | 0 .../packages/shared/kbn-rison}/jest.config.js | 4 +-- .../shared}/kbn-rison/kbn_rison.test.ts | 0 .../packages/shared}/kbn-rison/kbn_rison.ts | 0 .../packages/shared}/kbn-rison/kibana.jsonc | 0 .../packages/shared}/kbn-rison/package.json | 0 .../packages/shared/kbn-rison}/tsconfig.json | 2 +- .../packages/shared}/kbn-ui-theme/BUILD.bazel | 0 .../packages/shared}/kbn-ui-theme/index.ts | 0 .../shared}/kbn-ui-theme/kibana.jsonc | 0 .../shared}/kbn-ui-theme/package.json | 0 .../shared}/kbn-ui-theme/src/theme.ts | 0 .../shared}/kbn-ui-theme/tsconfig.json | 2 +- .../shared}/kbn-utility-types-jest/README.md | 0 .../shared}/kbn-utility-types-jest/index.ts | 0 .../kbn-utility-types-jest/kibana.jsonc | 0 .../kbn-utility-types-jest/package.json | 0 .../kbn-utility-types-jest}/tsconfig.json | 2 +- .../packages/shared}/kbn-utils/README.md | 0 .../packages/shared}/kbn-utils/index.ts | 0 .../packages/shared}/kbn-utils/jest.config.js | 4 +-- .../packages/shared}/kbn-utils/kibana.jsonc | 0 .../packages/shared}/kbn-utils/package.json | 0 .../shared}/kbn-utils/src/json/index.test.ts | 0 .../shared}/kbn-utils/src/json/index.ts | 0 .../shared}/kbn-utils/src/path/index.test.ts | 0 .../shared}/kbn-utils/src/path/index.ts | 0 .../src/streams/concat_stream.test.ts | 0 .../kbn-utils/src/streams/concat_stream.ts | 0 .../streams/concat_stream_providers.test.ts | 0 .../src/streams/concat_stream_providers.ts | 0 .../src/streams/filter_stream.test.ts | 0 .../kbn-utils/src/streams/filter_stream.ts | 0 .../shared}/kbn-utils/src/streams/index.ts | 0 .../src/streams/intersperse_stream.test.ts | 0 .../src/streams/intersperse_stream.ts | 0 .../kbn-utils/src/streams/list_stream.test.ts | 0 .../kbn-utils/src/streams/list_stream.ts | 0 .../kbn-utils/src/streams/map_stream.test.ts | 0 .../kbn-utils/src/streams/map_stream.ts | 0 .../src/streams/promise_from_streams.test.ts | 0 .../src/streams/promise_from_streams.ts | 0 .../src/streams/reduce_stream.test.ts | 0 .../kbn-utils/src/streams/reduce_stream.ts | 0 .../src/streams/replace_stream.test.ts | 0 .../kbn-utils/src/streams/replace_stream.ts | 0 .../src/streams/split_stream.test.ts | 0 .../kbn-utils/src/streams/split_stream.ts | 0 .../packages/shared}/kbn-utils/tsconfig.json | 2 +- tsconfig.base.json | 36 +++++++++---------- yarn.lock | 18 +++++----- 128 files changed, 89 insertions(+), 88 deletions(-) rename {packages => src/platform/packages/private}/kbn-repo-packages/BUILD.bazel (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/README.md (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/index.js (100%) rename {packages/kbn-rison => src/platform/packages/private/kbn-repo-packages}/jest.config.js (83%) rename {packages => src/platform/packages/private}/kbn-repo-packages/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/legacy/find_files.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/legacy/index.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/legacy/load_json_file.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/legacy/parse_kibana_platform_plugin.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/legacy/simple_kibana_platform_plugin_discovery.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/legacy/types.ts (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/get_git_repo_root.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/get_packages.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/get_repo_rels.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/package.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/parse_helpers.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/parse_kbn_import_req.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/parse_package_json.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/parse_package_manifest.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/plugin_category_info.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/plugins.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/modern/types.ts (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/package.json (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/tsconfig.json (84%) rename {packages => src/platform/packages/private}/kbn-repo-packages/utils/async.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/utils/async.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/utils/find_files.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/utils/jsonc.js (100%) rename {packages => src/platform/packages/private}/kbn-repo-packages/utils/strip_json_comments.js (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/BUILD.bazel (98%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/README.mdx (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/index.js (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/package.json (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/src/public_path_loader.js (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/src/public_path_module_creator.js (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/tsconfig.json (84%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-npm/webpack.config.js (98%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/BUILD.bazel (92%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/README.mdx (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/package.json (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/src/definitions.js (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/src/entry.js (98%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/src/polyfills.js (100%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/tsconfig.json (84%) rename {packages => src/platform/packages/private}/kbn-ui-shared-deps-src/webpack.config.js (98%) rename {packages => src/platform/packages/shared}/kbn-cbor/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-cbor/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cbor/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-cbor/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-cbor/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-cbor/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-cbor/tsconfig.json (69%) rename {packages => src/platform/packages/shared}/kbn-repo-info/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-repo-info/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-repo-info/index.js (100%) rename {packages => src/platform/packages/shared}/kbn-repo-info/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-repo-info/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-repo-info/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-repo-info/tsconfig.json (81%) rename {packages => src/platform/packages/shared}/kbn-repo-info/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-rison/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-rison/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-rison/index.ts (100%) rename {packages/kbn-repo-packages => src/platform/packages/shared/kbn-rison}/jest.config.js (85%) rename {packages => src/platform/packages/shared}/kbn-rison/kbn_rison.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-rison/kbn_rison.ts (100%) rename {packages => src/platform/packages/shared}/kbn-rison/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-rison/package.json (100%) rename {packages/kbn-utility-types-jest => src/platform/packages/shared/kbn-rison}/tsconfig.json (78%) rename {packages => src/platform/packages/shared}/kbn-ui-theme/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-ui-theme/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-theme/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-ui-theme/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-ui-theme/src/theme.ts (100%) rename {packages => src/platform/packages/shared}/kbn-ui-theme/tsconfig.json (75%) rename {packages => src/platform/packages/shared}/kbn-utility-types-jest/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types-jest/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types-jest/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-utility-types-jest/package.json (100%) rename {packages/kbn-rison => src/platform/packages/shared/kbn-utility-types-jest}/tsconfig.json (78%) rename {packages => src/platform/packages/shared}/kbn-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-utils/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/json/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/json/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/path/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/path/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/concat_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/concat_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/concat_stream_providers.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/concat_stream_providers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/filter_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/filter_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/intersperse_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/intersperse_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/list_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/list_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/map_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/map_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/promise_from_streams.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/promise_from_streams.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/reduce_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/reduce_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/replace_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/replace_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/split_stream.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/src/streams/split_stream.ts (100%) rename {packages => src/platform/packages/shared}/kbn-utils/tsconfig.json (83%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 1ea91c5b6724d..13d08e3db8b9c 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -304,7 +304,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^packages\/kbn-i18n-react/, /^src\/platform\/packages\/shared\/kbn-grouping/, /^src\/platform\/packages\/shared\/kbn-resizable-layout/, - /^packages\/kbn-rison/, + /^src\/platform\/packages\/shared\/kbn-rison/, /^src\/platform\/packages\/shared\/kbn-rule-data-utils/, /^packages\/kbn-safer-lodash-set/, /^src\/platform\/packages\/shared\/kbn-search-types/, @@ -314,7 +314,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/solutions\/security\/packages\/kbn-securitysolution-io-ts-list-types/, /^x-pack\/solutions\/security\/packages\/kbn-securitysolution-list-hooks/, /^x-pack\/solutions\/security\/packages\/kbn-securitysolution-t-grid/, - /^packages\/kbn-ui-theme/, + /^src\/platform\/packages\/shared\/kbn-ui-theme/, /^packages\/kbn-utility-types/, /^packages\/react/, /^packages\/shared-ux/, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 676356e4ce66f..e8a72269aa04a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -70,7 +70,7 @@ packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core x-pack/test/cases_api_integration/common/plugins/cases @elastic/response-ops src/platform/packages/shared/kbn-cases-components @elastic/response-ops x-pack/platform/plugins/shared/cases @elastic/response-ops -packages/kbn-cbor @elastic/kibana-operations +src/platform/packages/shared/kbn-cbor @elastic/kibana-operations src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore src/plugins/chart_expressions/common @elastic/kibana-visualizations packages/kbn-chart-icons @elastic/kibana-visualizations @@ -727,9 +727,9 @@ packages/kbn-relocate @elastic/kibana-core x-pack/platform/plugins/private/remote_clusters @elastic/kibana-management test/plugin_functional/plugins/rendering_plugin @elastic/kibana-core packages/kbn-repo-file-maps @elastic/kibana-operations -packages/kbn-repo-info @elastic/kibana-operations +src/platform/packages/shared/kbn-repo-info @elastic/kibana-operations packages/kbn-repo-linter @elastic/kibana-operations -packages/kbn-repo-packages @elastic/kibana-operations +src/platform/packages/private/kbn-repo-packages @elastic/kibana-operations packages/kbn-repo-path @elastic/kibana-operations packages/kbn-repo-source-classifier @elastic/kibana-operations packages/kbn-repo-source-classifier-cli @elastic/kibana-operations @@ -752,7 +752,7 @@ packages/response-ops/feature_flag_service @elastic/response-ops packages/response-ops/rule_form @elastic/response-ops src/platform/packages/private/response-ops/rule_params @elastic/response-ops examples/response_stream @elastic/ml-ui -packages/kbn-rison @elastic/kibana-operations +src/platform/packages/shared/kbn-rison @elastic/kibana-operations x-pack/platform/packages/private/rollup @elastic/kibana-management x-pack/platform/plugins/private/rollup @elastic/kibana-management packages/kbn-router-to-openapispec @elastic/kibana-core @@ -990,9 +990,9 @@ examples/ui_action_examples @elastic/appex-sharedux examples/ui_actions_explorer @elastic/appex-sharedux src/plugins/ui_actions @elastic/appex-sharedux test/plugin_functional/plugins/ui_settings_plugin @elastic/kibana-core -packages/kbn-ui-shared-deps-npm @elastic/kibana-operations -packages/kbn-ui-shared-deps-src @elastic/kibana-operations -packages/kbn-ui-theme @elastic/kibana-operations +src/platform/packages/private/kbn-ui-shared-deps-npm @elastic/kibana-operations +src/platform/packages/private/kbn-ui-shared-deps-src @elastic/kibana-operations +src/platform/packages/shared/kbn-ui-theme @elastic/kibana-operations src/platform/packages/shared/kbn-unified-data-table @elastic/kibana-data-discovery @elastic/security-threat-hunting-investigations src/platform/packages/shared/kbn-unified-doc-viewer @elastic/kibana-data-discovery examples/unified_doc_viewer @elastic/kibana-core @@ -1014,8 +1014,8 @@ packages/kbn-user-profile-components @elastic/kibana-security examples/user_profile_examples @elastic/kibana-security x-pack/test/security_api_integration/plugins/user_profiles_consumer @elastic/kibana-security packages/kbn-utility-types @elastic/kibana-core -packages/kbn-utility-types-jest @elastic/kibana-operations -packages/kbn-utils @elastic/kibana-operations +src/platform/packages/shared/kbn-utility-types-jest @elastic/kibana-operations +src/platform/packages/shared/kbn-utils @elastic/kibana-operations x-pack/solutions/observability/plugins/ux @elastic/obs-ux-management-team examples/v8_profiler_examples @elastic/response-ops packages/kbn-validate-next-docs-cli @elastic/kibana-operations diff --git a/.gitignore b/.gitignore index 72b877b06e04d..e59ae47c01cde 100644 --- a/.gitignore +++ b/.gitignore @@ -132,8 +132,8 @@ elastic-agent-* fleet-server-* elastic-agent.yml fleet-server.yml -/packages/*/package-map.json -/packages/*/config-paths.json +src/platform/packages/**/package-map.json +/packages/**/config-paths.json /packages/kbn-synthetic-package-map/ **/.synthetics/ **/.journeys/ diff --git a/kbn_pm/src/lib/bazel.mjs b/kbn_pm/src/lib/bazel.mjs index f3a0e287cf3fd..3904db2c750b5 100644 --- a/kbn_pm/src/lib/bazel.mjs +++ b/kbn_pm/src/lib/bazel.mjs @@ -20,8 +20,8 @@ import { indent } from './indent.mjs'; const BAZEL_RUNNER_SRC = '../../../packages/kbn-bazel-runner/index.js'; const BAZEL_TARGETS = [ - '//packages/kbn-ui-shared-deps-npm:shared_built_assets', - '//packages/kbn-ui-shared-deps-src:shared_built_assets', + '//src/platform/packages/private/kbn-ui-shared-deps-npm:shared_built_assets', + '//src/platform/packages/private/kbn-ui-shared-deps-src:shared_built_assets', '//packages/kbn-monaco:target_workers', ]; diff --git a/kbn_pm/src/lib/external_packages.js b/kbn_pm/src/lib/external_packages.js index 59d67352d8f71..1b9c4713c724a 100644 --- a/kbn_pm/src/lib/external_packages.js +++ b/kbn_pm/src/lib/external_packages.js @@ -12,7 +12,7 @@ module.exports = { ['@kbn/repo-packages']() { // we need to load this package before we install node modules so we can't use @kbn/* imports here // eslint-disable-next-line import/no-dynamic-require - return require('../../../' + 'packages/kbn-repo-packages'); + return require('../../../' + 'src/platform/packages/private/kbn-repo-packages'); }, ['@kbn/ci-stats-reporter']() { diff --git a/package.json b/package.json index ca1c06c2027c3..0ad22f002cd0d 100644 --- a/package.json +++ b/package.json @@ -203,7 +203,7 @@ "@kbn/cases-api-integration-test-plugin": "link:x-pack/test/cases_api_integration/common/plugins/cases", "@kbn/cases-components": "link:src/platform/packages/shared/kbn-cases-components", "@kbn/cases-plugin": "link:x-pack/platform/plugins/shared/cases", - "@kbn/cbor": "link:packages/kbn-cbor", + "@kbn/cbor": "link:src/platform/packages/shared/kbn-cbor", "@kbn/cell-actions": "link:src/platform/packages/shared/kbn-cell-actions", "@kbn/chart-expressions-common": "link:src/plugins/chart_expressions/common", "@kbn/chart-icons": "link:packages/kbn-chart-icons", @@ -743,8 +743,8 @@ "@kbn/recently-accessed": "link:packages/kbn-recently-accessed", "@kbn/remote-clusters-plugin": "link:x-pack/platform/plugins/private/remote_clusters", "@kbn/rendering-plugin": "link:test/plugin_functional/plugins/rendering_plugin", - "@kbn/repo-info": "link:packages/kbn-repo-info", - "@kbn/repo-packages": "link:packages/kbn-repo-packages", + "@kbn/repo-info": "link:src/platform/packages/shared/kbn-repo-info", + "@kbn/repo-packages": "link:src/platform/packages/private/kbn-repo-packages", "@kbn/reporting-common": "link:packages/kbn-reporting/common", "@kbn/reporting-csv-share-panel": "link:packages/kbn-reporting/get_csv_panel_actions", "@kbn/reporting-export-types-csv": "link:packages/kbn-reporting/export_types/csv", @@ -764,7 +764,7 @@ "@kbn/response-ops-rule-form": "link:packages/response-ops/rule_form", "@kbn/response-ops-rule-params": "link:src/platform/packages/private/response-ops/rule_params", "@kbn/response-stream-plugin": "link:examples/response_stream", - "@kbn/rison": "link:packages/kbn-rison", + "@kbn/rison": "link:src/platform/packages/shared/kbn-rison", "@kbn/rollup": "link:x-pack/platform/packages/private/rollup", "@kbn/rollup-plugin": "link:x-pack/platform/plugins/private/rollup", "@kbn/router-to-openapispec": "link:packages/kbn-router-to-openapispec", @@ -979,9 +979,9 @@ "@kbn/ui-actions-explorer-plugin": "link:examples/ui_actions_explorer", "@kbn/ui-actions-plugin": "link:src/plugins/ui_actions", "@kbn/ui-settings-plugin": "link:test/plugin_functional/plugins/ui_settings_plugin", - "@kbn/ui-shared-deps-npm": "link:packages/kbn-ui-shared-deps-npm", - "@kbn/ui-shared-deps-src": "link:packages/kbn-ui-shared-deps-src", - "@kbn/ui-theme": "link:packages/kbn-ui-theme", + "@kbn/ui-shared-deps-npm": "link:src/platform/packages/private/kbn-ui-shared-deps-npm", + "@kbn/ui-shared-deps-src": "link:src/platform/packages/private/kbn-ui-shared-deps-src", + "@kbn/ui-theme": "link:src/platform/packages/shared/kbn-ui-theme", "@kbn/unified-data-table": "link:src/platform/packages/shared/kbn-unified-data-table", "@kbn/unified-doc-viewer": "link:src/platform/packages/shared/kbn-unified-doc-viewer", "@kbn/unified-doc-viewer-examples": "link:examples/unified_doc_viewer", @@ -1003,8 +1003,8 @@ "@kbn/user-profile-examples-plugin": "link:examples/user_profile_examples", "@kbn/user-profiles-consumer-plugin": "link:x-pack/test/security_api_integration/plugins/user_profiles_consumer", "@kbn/utility-types": "link:packages/kbn-utility-types", - "@kbn/utility-types-jest": "link:packages/kbn-utility-types-jest", - "@kbn/utils": "link:packages/kbn-utils", + "@kbn/utility-types-jest": "link:src/platform/packages/shared/kbn-utility-types-jest", + "@kbn/utils": "link:src/platform/packages/shared/kbn-utils", "@kbn/ux-plugin": "link:x-pack/solutions/observability/plugins/ux", "@kbn/v8-profiler-examples-plugin": "link:examples/v8_profiler_examples", "@kbn/vis-default-editor-plugin": "link:src/plugins/vis_default_editor", diff --git a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts b/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts index 97f5c17ef240b..efce520d8753e 100644 --- a/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts +++ b/packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts @@ -11,7 +11,7 @@ import type { ThemeVersion } from '@kbn/ui-shared-deps-npm'; /** * Computes the themeTag that will be used on the client-side as `__kbnThemeTag__` - * @see `packages/kbn-ui-shared-deps-src/theme.ts` + * @see `src/platform/packages/private/kbn-ui-shared-deps-src/theme.ts` */ export const getThemeTag = ({ themeVersion, diff --git a/packages/kbn-babel-register/BUILD.bazel b/packages/kbn-babel-register/BUILD.bazel index f97499a481baa..b64bf2eee0d46 100644 --- a/packages/kbn-babel-register/BUILD.bazel +++ b/packages/kbn-babel-register/BUILD.bazel @@ -25,7 +25,7 @@ SRCS = glob( # # To reference other packages use: # "//repo/relative/path/to/package" -# eg. "//packages/kbn-utils" +# eg. "//src/platform/packages/shared/kbn-utils" # # To reference a NPM package use: # "@npm//name-of-package" @@ -37,8 +37,8 @@ BUNDLER_DEPS = [ "@npm//lmdb", "@npm//date-fns", "@npm//source-map-support", - "//packages/kbn-repo-packages", - "//packages/kbn-repo-info", + "//src/platform/packages/private/kbn-repo-packages", + "//src/platform/packages/shared/kbn-repo-info", "//packages/kbn-babel-transform", ] diff --git a/packages/kbn-eslint-plugin-imports/src/helpers/groups.ts b/packages/kbn-eslint-plugin-imports/src/helpers/groups.ts index 3800788689882..2769f51bb8558 100644 --- a/packages/kbn-eslint-plugin-imports/src/helpers/groups.ts +++ b/packages/kbn-eslint-plugin-imports/src/helpers/groups.ts @@ -33,7 +33,7 @@ export function isImportableFrom( * Checks whether the given module is supposed to be used at dev/build/test time only * @param module The module to check * @returns true if the module is a dev-only module, false otherwise - * @see Package#isDevOnly (packages/kbn-repo-packages/modern/package.js) + * @see Package#isDevOnly (src/platform/packages/private/kbn-repo-packages/modern/package.js) */ function isDevOnly(module: ModuleId) { return ( diff --git a/packages/kbn-monaco/BUILD.bazel b/packages/kbn-monaco/BUILD.bazel index c21c6b3cbf71d..7feda0887a4bd 100644 --- a/packages/kbn-monaco/BUILD.bazel +++ b/packages/kbn-monaco/BUILD.bazel @@ -25,7 +25,7 @@ SRCS = glob( SHARED_DEPS = [ "//packages/kbn-i18n", - "//packages/kbn-ui-theme", + "//src/platform/packages/shared/kbn-ui-theme", "//src/platform/packages/shared/kbn-esql-validation-autocomplete", "//src/platform/packages/shared/kbn-esql-ast", "@npm//antlr4", diff --git a/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts b/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts index 2bc7dbc28b3f7..38189aa4e86a7 100644 --- a/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts +++ b/packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts @@ -17,8 +17,8 @@ export async function buildBazelPackages({ log, dist }: TaskContext) { await runBazel( [ 'build', - '//packages/kbn-ui-shared-deps-npm:shared_built_assets', - '//packages/kbn-ui-shared-deps-src:shared_built_assets', + '//src/platform/packages/private/kbn-ui-shared-deps-npm:shared_built_assets', + '//src/platform/packages/private/kbn-ui-shared-deps-src:shared_built_assets', '//packages/kbn-monaco:target_workers', '--show_result=1', ].concat(dist ? [`--define=dist=true`] : []), diff --git a/src/dev/build/tasks/build_packages_task.ts b/src/dev/build/tasks/build_packages_task.ts index 8677b65014588..1947de06e0019 100644 --- a/src/dev/build/tasks/build_packages_task.ts +++ b/src/dev/build/tasks/build_packages_task.ts @@ -109,8 +109,8 @@ export const BuildPackages: Task = { await runBazel( [ 'build', - '//packages/kbn-ui-shared-deps-npm:shared_built_assets', - '//packages/kbn-ui-shared-deps-src:shared_built_assets', + '//src/platform/packages/private/kbn-ui-shared-deps-npm:shared_built_assets', + '//src/platform/packages/private/kbn-ui-shared-deps-src:shared_built_assets', '//packages/kbn-monaco:target_workers', '--show_result=1', '--define=dist=true', diff --git a/packages/kbn-repo-packages/BUILD.bazel b/src/platform/packages/private/kbn-repo-packages/BUILD.bazel similarity index 100% rename from packages/kbn-repo-packages/BUILD.bazel rename to src/platform/packages/private/kbn-repo-packages/BUILD.bazel diff --git a/packages/kbn-repo-packages/README.md b/src/platform/packages/private/kbn-repo-packages/README.md similarity index 100% rename from packages/kbn-repo-packages/README.md rename to src/platform/packages/private/kbn-repo-packages/README.md diff --git a/packages/kbn-repo-packages/index.js b/src/platform/packages/private/kbn-repo-packages/index.js similarity index 100% rename from packages/kbn-repo-packages/index.js rename to src/platform/packages/private/kbn-repo-packages/index.js diff --git a/packages/kbn-rison/jest.config.js b/src/platform/packages/private/kbn-repo-packages/jest.config.js similarity index 83% rename from packages/kbn-rison/jest.config.js rename to src/platform/packages/private/kbn-repo-packages/jest.config.js index df672c02f84b8..f0f8835aff991 100644 --- a/packages/kbn-rison/jest.config.js +++ b/src/platform/packages/private/kbn-repo-packages/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-rison'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-repo-packages'], }; diff --git a/packages/kbn-repo-packages/kibana.jsonc b/src/platform/packages/private/kbn-repo-packages/kibana.jsonc similarity index 100% rename from packages/kbn-repo-packages/kibana.jsonc rename to src/platform/packages/private/kbn-repo-packages/kibana.jsonc diff --git a/packages/kbn-repo-packages/legacy/find_files.js b/src/platform/packages/private/kbn-repo-packages/legacy/find_files.js similarity index 100% rename from packages/kbn-repo-packages/legacy/find_files.js rename to src/platform/packages/private/kbn-repo-packages/legacy/find_files.js diff --git a/packages/kbn-repo-packages/legacy/index.js b/src/platform/packages/private/kbn-repo-packages/legacy/index.js similarity index 100% rename from packages/kbn-repo-packages/legacy/index.js rename to src/platform/packages/private/kbn-repo-packages/legacy/index.js diff --git a/packages/kbn-repo-packages/legacy/load_json_file.js b/src/platform/packages/private/kbn-repo-packages/legacy/load_json_file.js similarity index 100% rename from packages/kbn-repo-packages/legacy/load_json_file.js rename to src/platform/packages/private/kbn-repo-packages/legacy/load_json_file.js diff --git a/packages/kbn-repo-packages/legacy/parse_kibana_platform_plugin.js b/src/platform/packages/private/kbn-repo-packages/legacy/parse_kibana_platform_plugin.js similarity index 100% rename from packages/kbn-repo-packages/legacy/parse_kibana_platform_plugin.js rename to src/platform/packages/private/kbn-repo-packages/legacy/parse_kibana_platform_plugin.js diff --git a/packages/kbn-repo-packages/legacy/simple_kibana_platform_plugin_discovery.js b/src/platform/packages/private/kbn-repo-packages/legacy/simple_kibana_platform_plugin_discovery.js similarity index 100% rename from packages/kbn-repo-packages/legacy/simple_kibana_platform_plugin_discovery.js rename to src/platform/packages/private/kbn-repo-packages/legacy/simple_kibana_platform_plugin_discovery.js diff --git a/packages/kbn-repo-packages/legacy/types.ts b/src/platform/packages/private/kbn-repo-packages/legacy/types.ts similarity index 100% rename from packages/kbn-repo-packages/legacy/types.ts rename to src/platform/packages/private/kbn-repo-packages/legacy/types.ts diff --git a/packages/kbn-repo-packages/modern/get_git_repo_root.js b/src/platform/packages/private/kbn-repo-packages/modern/get_git_repo_root.js similarity index 100% rename from packages/kbn-repo-packages/modern/get_git_repo_root.js rename to src/platform/packages/private/kbn-repo-packages/modern/get_git_repo_root.js diff --git a/packages/kbn-repo-packages/modern/get_packages.js b/src/platform/packages/private/kbn-repo-packages/modern/get_packages.js similarity index 100% rename from packages/kbn-repo-packages/modern/get_packages.js rename to src/platform/packages/private/kbn-repo-packages/modern/get_packages.js diff --git a/packages/kbn-repo-packages/modern/get_repo_rels.js b/src/platform/packages/private/kbn-repo-packages/modern/get_repo_rels.js similarity index 100% rename from packages/kbn-repo-packages/modern/get_repo_rels.js rename to src/platform/packages/private/kbn-repo-packages/modern/get_repo_rels.js diff --git a/packages/kbn-repo-packages/modern/package.js b/src/platform/packages/private/kbn-repo-packages/modern/package.js similarity index 100% rename from packages/kbn-repo-packages/modern/package.js rename to src/platform/packages/private/kbn-repo-packages/modern/package.js diff --git a/packages/kbn-repo-packages/modern/parse_helpers.js b/src/platform/packages/private/kbn-repo-packages/modern/parse_helpers.js similarity index 100% rename from packages/kbn-repo-packages/modern/parse_helpers.js rename to src/platform/packages/private/kbn-repo-packages/modern/parse_helpers.js diff --git a/packages/kbn-repo-packages/modern/parse_kbn_import_req.js b/src/platform/packages/private/kbn-repo-packages/modern/parse_kbn_import_req.js similarity index 100% rename from packages/kbn-repo-packages/modern/parse_kbn_import_req.js rename to src/platform/packages/private/kbn-repo-packages/modern/parse_kbn_import_req.js diff --git a/packages/kbn-repo-packages/modern/parse_package_json.js b/src/platform/packages/private/kbn-repo-packages/modern/parse_package_json.js similarity index 100% rename from packages/kbn-repo-packages/modern/parse_package_json.js rename to src/platform/packages/private/kbn-repo-packages/modern/parse_package_json.js diff --git a/packages/kbn-repo-packages/modern/parse_package_manifest.js b/src/platform/packages/private/kbn-repo-packages/modern/parse_package_manifest.js similarity index 100% rename from packages/kbn-repo-packages/modern/parse_package_manifest.js rename to src/platform/packages/private/kbn-repo-packages/modern/parse_package_manifest.js diff --git a/packages/kbn-repo-packages/modern/plugin_category_info.js b/src/platform/packages/private/kbn-repo-packages/modern/plugin_category_info.js similarity index 100% rename from packages/kbn-repo-packages/modern/plugin_category_info.js rename to src/platform/packages/private/kbn-repo-packages/modern/plugin_category_info.js diff --git a/packages/kbn-repo-packages/modern/plugins.js b/src/platform/packages/private/kbn-repo-packages/modern/plugins.js similarity index 100% rename from packages/kbn-repo-packages/modern/plugins.js rename to src/platform/packages/private/kbn-repo-packages/modern/plugins.js diff --git a/packages/kbn-repo-packages/modern/types.ts b/src/platform/packages/private/kbn-repo-packages/modern/types.ts similarity index 100% rename from packages/kbn-repo-packages/modern/types.ts rename to src/platform/packages/private/kbn-repo-packages/modern/types.ts diff --git a/packages/kbn-repo-packages/package.json b/src/platform/packages/private/kbn-repo-packages/package.json similarity index 100% rename from packages/kbn-repo-packages/package.json rename to src/platform/packages/private/kbn-repo-packages/package.json diff --git a/packages/kbn-repo-packages/tsconfig.json b/src/platform/packages/private/kbn-repo-packages/tsconfig.json similarity index 84% rename from packages/kbn-repo-packages/tsconfig.json rename to src/platform/packages/private/kbn-repo-packages/tsconfig.json index be62cc1a4c90b..d116c3bfb8e6c 100644 --- a/packages/kbn-repo-packages/tsconfig.json +++ b/src/platform/packages/private/kbn-repo-packages/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "checkJs": true, "outDir": "target/types", diff --git a/packages/kbn-repo-packages/utils/async.js b/src/platform/packages/private/kbn-repo-packages/utils/async.js similarity index 100% rename from packages/kbn-repo-packages/utils/async.js rename to src/platform/packages/private/kbn-repo-packages/utils/async.js diff --git a/packages/kbn-repo-packages/utils/async.test.ts b/src/platform/packages/private/kbn-repo-packages/utils/async.test.ts similarity index 100% rename from packages/kbn-repo-packages/utils/async.test.ts rename to src/platform/packages/private/kbn-repo-packages/utils/async.test.ts diff --git a/packages/kbn-repo-packages/utils/find_files.js b/src/platform/packages/private/kbn-repo-packages/utils/find_files.js similarity index 100% rename from packages/kbn-repo-packages/utils/find_files.js rename to src/platform/packages/private/kbn-repo-packages/utils/find_files.js diff --git a/packages/kbn-repo-packages/utils/jsonc.js b/src/platform/packages/private/kbn-repo-packages/utils/jsonc.js similarity index 100% rename from packages/kbn-repo-packages/utils/jsonc.js rename to src/platform/packages/private/kbn-repo-packages/utils/jsonc.js diff --git a/packages/kbn-repo-packages/utils/strip_json_comments.js b/src/platform/packages/private/kbn-repo-packages/utils/strip_json_comments.js similarity index 100% rename from packages/kbn-repo-packages/utils/strip_json_comments.js rename to src/platform/packages/private/kbn-repo-packages/utils/strip_json_comments.js diff --git a/packages/kbn-ui-shared-deps-npm/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-npm/BUILD.bazel similarity index 98% rename from packages/kbn-ui-shared-deps-npm/BUILD.bazel rename to src/platform/packages/private/kbn-ui-shared-deps-npm/BUILD.bazel index cac4840335549..1e54524fdf55e 100644 --- a/packages/kbn-ui-shared-deps-npm/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-npm/BUILD.bazel @@ -28,7 +28,7 @@ RUNTIME_DEPS = [ "@npm//@babel/plugin-proposal-optional-chaining", "@npm//loader-utils", "@npm//val-loader", - "//packages/kbn-repo-info", + "//src/platform/packages/shared/kbn-repo-info", # deps in the dll need to be included in the sandbox for consumers # of this DLL (ui-shared-deps-src) because webpack won't actually # use the DLL version of a package until it has resolved to the same diff --git a/packages/kbn-ui-shared-deps-npm/README.mdx b/src/platform/packages/private/kbn-ui-shared-deps-npm/README.mdx similarity index 100% rename from packages/kbn-ui-shared-deps-npm/README.mdx rename to src/platform/packages/private/kbn-ui-shared-deps-npm/README.mdx diff --git a/packages/kbn-ui-shared-deps-npm/index.js b/src/platform/packages/private/kbn-ui-shared-deps-npm/index.js similarity index 100% rename from packages/kbn-ui-shared-deps-npm/index.js rename to src/platform/packages/private/kbn-ui-shared-deps-npm/index.js diff --git a/packages/kbn-ui-shared-deps-npm/kibana.jsonc b/src/platform/packages/private/kbn-ui-shared-deps-npm/kibana.jsonc similarity index 100% rename from packages/kbn-ui-shared-deps-npm/kibana.jsonc rename to src/platform/packages/private/kbn-ui-shared-deps-npm/kibana.jsonc diff --git a/packages/kbn-ui-shared-deps-npm/package.json b/src/platform/packages/private/kbn-ui-shared-deps-npm/package.json similarity index 100% rename from packages/kbn-ui-shared-deps-npm/package.json rename to src/platform/packages/private/kbn-ui-shared-deps-npm/package.json diff --git a/packages/kbn-ui-shared-deps-npm/src/public_path_loader.js b/src/platform/packages/private/kbn-ui-shared-deps-npm/src/public_path_loader.js similarity index 100% rename from packages/kbn-ui-shared-deps-npm/src/public_path_loader.js rename to src/platform/packages/private/kbn-ui-shared-deps-npm/src/public_path_loader.js diff --git a/packages/kbn-ui-shared-deps-npm/src/public_path_module_creator.js b/src/platform/packages/private/kbn-ui-shared-deps-npm/src/public_path_module_creator.js similarity index 100% rename from packages/kbn-ui-shared-deps-npm/src/public_path_module_creator.js rename to src/platform/packages/private/kbn-ui-shared-deps-npm/src/public_path_module_creator.js diff --git a/packages/kbn-ui-shared-deps-npm/tsconfig.json b/src/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json similarity index 84% rename from packages/kbn-ui-shared-deps-npm/tsconfig.json rename to src/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json index 3feba9269f394..86073d0d09b59 100644 --- a/packages/kbn-ui-shared-deps-npm/tsconfig.json +++ b/src/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "checkJs": true, diff --git a/packages/kbn-ui-shared-deps-npm/webpack.config.js b/src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js similarity index 98% rename from packages/kbn-ui-shared-deps-npm/webpack.config.js rename to src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js index f43c294746b5e..f5383b4b831ba 100644 --- a/packages/kbn-ui-shared-deps-npm/webpack.config.js +++ b/src/platform/packages/private/kbn-ui-shared-deps-npm/webpack.config.js @@ -17,7 +17,7 @@ const UiSharedDepsNpm = require('.'); const MOMENT_SRC = require.resolve('moment/min/moment-with-locales.js'); const WEBPACK_SRC = require.resolve('webpack'); -const REPO_ROOT = Path.resolve(__dirname, '..', '..'); +const REPO_ROOT = Path.resolve(__dirname, '..', '..', '..', '..', '..'); module.exports = (_, argv) => { const outputPath = argv.outputPath ? Path.resolve(argv.outputPath) : UiSharedDepsNpm.distDir; diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel similarity index 92% rename from packages/kbn-ui-shared-deps-src/BUILD.bazel rename to src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 129514ee1e992..6d70288de9af8 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -17,11 +17,11 @@ webpack_cli( "@npm//css-loader", "@npm//url-loader", "@npm//@babel/plugin-transform-numeric-separator", - "//packages/kbn-ui-shared-deps-npm", + "//src/platform/packages/private/kbn-ui-shared-deps-npm", "//packages/kbn-babel-register", "//packages/kbn-babel-preset", # packages included in the shared deps src bundle - "//packages/kbn-ui-theme", + "//src/platform/packages/shared/kbn-ui-theme", "//packages/kbn-i18n", "//packages/kbn-i18n-react", "//packages/kbn-ebt-tools", @@ -37,7 +37,7 @@ webpack_cli( "//packages/kbn-peggy", "//packages/kbn-peggy-loader", "//packages/shared-ux/error_boundary", - "//packages/kbn-rison", + "//src/platform/packages/shared/kbn-rison", "//packages/shared-ux/code_editor/impl:code_editor", "//packages/react/kibana_context/common", "//packages/react/kibana_context/root", diff --git a/packages/kbn-ui-shared-deps-src/README.mdx b/src/platform/packages/private/kbn-ui-shared-deps-src/README.mdx similarity index 100% rename from packages/kbn-ui-shared-deps-src/README.mdx rename to src/platform/packages/private/kbn-ui-shared-deps-src/README.mdx diff --git a/packages/kbn-ui-shared-deps-src/index.ts b/src/platform/packages/private/kbn-ui-shared-deps-src/index.ts similarity index 100% rename from packages/kbn-ui-shared-deps-src/index.ts rename to src/platform/packages/private/kbn-ui-shared-deps-src/index.ts diff --git a/packages/kbn-ui-shared-deps-src/kibana.jsonc b/src/platform/packages/private/kbn-ui-shared-deps-src/kibana.jsonc similarity index 100% rename from packages/kbn-ui-shared-deps-src/kibana.jsonc rename to src/platform/packages/private/kbn-ui-shared-deps-src/kibana.jsonc diff --git a/packages/kbn-ui-shared-deps-src/package.json b/src/platform/packages/private/kbn-ui-shared-deps-src/package.json similarity index 100% rename from packages/kbn-ui-shared-deps-src/package.json rename to src/platform/packages/private/kbn-ui-shared-deps-src/package.json diff --git a/packages/kbn-ui-shared-deps-src/src/definitions.js b/src/platform/packages/private/kbn-ui-shared-deps-src/src/definitions.js similarity index 100% rename from packages/kbn-ui-shared-deps-src/src/definitions.js rename to src/platform/packages/private/kbn-ui-shared-deps-src/src/definitions.js diff --git a/packages/kbn-ui-shared-deps-src/src/entry.js b/src/platform/packages/private/kbn-ui-shared-deps-src/src/entry.js similarity index 98% rename from packages/kbn-ui-shared-deps-src/src/entry.js rename to src/platform/packages/private/kbn-ui-shared-deps-src/src/entry.js index b9289a036370f..137e06a412940 100644 --- a/packages/kbn-ui-shared-deps-src/src/entry.js +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/src/entry.js @@ -31,6 +31,7 @@ export const ReactDomServer = require('react-dom/server'); export const ReactRouter = require('react-router'); export const ReactRouterDom = require('react-router-dom'); export const ReactRouterDomV5Compat = require('react-router-dom-v5-compat'); +// eslint-disable-next-line @kbn/eslint/module_migration export const StyledComponents = require('styled-components'); export const FastestLevenshtein = require('fastest-levenshtein'); diff --git a/packages/kbn-ui-shared-deps-src/src/polyfills.js b/src/platform/packages/private/kbn-ui-shared-deps-src/src/polyfills.js similarity index 100% rename from packages/kbn-ui-shared-deps-src/src/polyfills.js rename to src/platform/packages/private/kbn-ui-shared-deps-src/src/polyfills.js diff --git a/packages/kbn-ui-shared-deps-src/tsconfig.json b/src/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json similarity index 84% rename from packages/kbn-ui-shared-deps-src/tsconfig.json rename to src/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json index 33f7503df2416..582fa379b32ac 100644 --- a/packages/kbn-ui-shared-deps-src/tsconfig.json +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-ui-shared-deps-src/webpack.config.js b/src/platform/packages/private/kbn-ui-shared-deps-src/webpack.config.js similarity index 98% rename from packages/kbn-ui-shared-deps-src/webpack.config.js rename to src/platform/packages/private/kbn-ui-shared-deps-src/webpack.config.js index 26eac38c3060c..2c01d209b7315 100644 --- a/packages/kbn-ui-shared-deps-src/webpack.config.js +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/webpack.config.js @@ -20,7 +20,7 @@ const { distDir: UiSharedDepsSrcDistDir } = require('./src/definitions'); const MOMENT_SRC = require.resolve('moment/min/moment-with-locales.js'); -const REPO_ROOT = Path.resolve(__dirname, '..', '..'); +const REPO_ROOT = Path.resolve(__dirname, '..', '..', '..', '..', '..'); module.exports = { node: { diff --git a/packages/kbn-cbor/README.md b/src/platform/packages/shared/kbn-cbor/README.md similarity index 100% rename from packages/kbn-cbor/README.md rename to src/platform/packages/shared/kbn-cbor/README.md diff --git a/packages/kbn-cbor/index.test.ts b/src/platform/packages/shared/kbn-cbor/index.test.ts similarity index 100% rename from packages/kbn-cbor/index.test.ts rename to src/platform/packages/shared/kbn-cbor/index.test.ts diff --git a/packages/kbn-cbor/index.ts b/src/platform/packages/shared/kbn-cbor/index.ts similarity index 100% rename from packages/kbn-cbor/index.ts rename to src/platform/packages/shared/kbn-cbor/index.ts diff --git a/packages/kbn-cbor/jest.config.js b/src/platform/packages/shared/kbn-cbor/jest.config.js similarity index 84% rename from packages/kbn-cbor/jest.config.js rename to src/platform/packages/shared/kbn-cbor/jest.config.js index 270ae6d046c3d..e37042315ba3c 100644 --- a/packages/kbn-cbor/jest.config.js +++ b/src/platform/packages/shared/kbn-cbor/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-cbor'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-cbor'], }; diff --git a/packages/kbn-cbor/kibana.jsonc b/src/platform/packages/shared/kbn-cbor/kibana.jsonc similarity index 100% rename from packages/kbn-cbor/kibana.jsonc rename to src/platform/packages/shared/kbn-cbor/kibana.jsonc diff --git a/packages/kbn-cbor/package.json b/src/platform/packages/shared/kbn-cbor/package.json similarity index 100% rename from packages/kbn-cbor/package.json rename to src/platform/packages/shared/kbn-cbor/package.json diff --git a/packages/kbn-cbor/tsconfig.json b/src/platform/packages/shared/kbn-cbor/tsconfig.json similarity index 69% rename from packages/kbn-cbor/tsconfig.json rename to src/platform/packages/shared/kbn-cbor/tsconfig.json index f4b12f8b2de2b..fc263e71f5b3e 100644 --- a/packages/kbn-cbor/tsconfig.json +++ b/src/platform/packages/shared/kbn-cbor/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ @@ -9,7 +9,7 @@ }, "include": [ "**/*.ts", - "../../typings/borc.d.ts" + "../../../../../typings/borc.d.ts" ], "exclude": [ "target/**/*" diff --git a/packages/kbn-repo-info/BUILD.bazel b/src/platform/packages/shared/kbn-repo-info/BUILD.bazel similarity index 100% rename from packages/kbn-repo-info/BUILD.bazel rename to src/platform/packages/shared/kbn-repo-info/BUILD.bazel diff --git a/packages/kbn-repo-info/README.md b/src/platform/packages/shared/kbn-repo-info/README.md similarity index 100% rename from packages/kbn-repo-info/README.md rename to src/platform/packages/shared/kbn-repo-info/README.md diff --git a/packages/kbn-repo-info/index.js b/src/platform/packages/shared/kbn-repo-info/index.js similarity index 100% rename from packages/kbn-repo-info/index.js rename to src/platform/packages/shared/kbn-repo-info/index.js diff --git a/packages/kbn-repo-info/jest.config.js b/src/platform/packages/shared/kbn-repo-info/jest.config.js similarity index 84% rename from packages/kbn-repo-info/jest.config.js rename to src/platform/packages/shared/kbn-repo-info/jest.config.js index f44ccd7464234..2476788098f37 100644 --- a/packages/kbn-repo-info/jest.config.js +++ b/src/platform/packages/shared/kbn-repo-info/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-repo-info'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-repo-info'], }; diff --git a/packages/kbn-repo-info/kibana.jsonc b/src/platform/packages/shared/kbn-repo-info/kibana.jsonc similarity index 100% rename from packages/kbn-repo-info/kibana.jsonc rename to src/platform/packages/shared/kbn-repo-info/kibana.jsonc diff --git a/packages/kbn-repo-info/package.json b/src/platform/packages/shared/kbn-repo-info/package.json similarity index 100% rename from packages/kbn-repo-info/package.json rename to src/platform/packages/shared/kbn-repo-info/package.json diff --git a/packages/kbn-repo-info/tsconfig.json b/src/platform/packages/shared/kbn-repo-info/tsconfig.json similarity index 81% rename from packages/kbn-repo-info/tsconfig.json rename to src/platform/packages/shared/kbn-repo-info/tsconfig.json index 3bbf05e134ce1..b862dde8d9d4f 100644 --- a/packages/kbn-repo-info/tsconfig.json +++ b/src/platform/packages/shared/kbn-repo-info/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "checkJs": true, "outDir": "target/types", diff --git a/packages/kbn-repo-info/types.ts b/src/platform/packages/shared/kbn-repo-info/types.ts similarity index 100% rename from packages/kbn-repo-info/types.ts rename to src/platform/packages/shared/kbn-repo-info/types.ts diff --git a/packages/kbn-rison/BUILD.bazel b/src/platform/packages/shared/kbn-rison/BUILD.bazel similarity index 100% rename from packages/kbn-rison/BUILD.bazel rename to src/platform/packages/shared/kbn-rison/BUILD.bazel diff --git a/packages/kbn-rison/README.md b/src/platform/packages/shared/kbn-rison/README.md similarity index 100% rename from packages/kbn-rison/README.md rename to src/platform/packages/shared/kbn-rison/README.md diff --git a/packages/kbn-rison/index.ts b/src/platform/packages/shared/kbn-rison/index.ts similarity index 100% rename from packages/kbn-rison/index.ts rename to src/platform/packages/shared/kbn-rison/index.ts diff --git a/packages/kbn-repo-packages/jest.config.js b/src/platform/packages/shared/kbn-rison/jest.config.js similarity index 85% rename from packages/kbn-repo-packages/jest.config.js rename to src/platform/packages/shared/kbn-rison/jest.config.js index 86c94700a82c7..9aded39e6fe91 100644 --- a/packages/kbn-repo-packages/jest.config.js +++ b/src/platform/packages/shared/kbn-rison/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../..', - roots: ['/packages/kbn-repo-packages'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-rison'], }; diff --git a/packages/kbn-rison/kbn_rison.test.ts b/src/platform/packages/shared/kbn-rison/kbn_rison.test.ts similarity index 100% rename from packages/kbn-rison/kbn_rison.test.ts rename to src/platform/packages/shared/kbn-rison/kbn_rison.test.ts diff --git a/packages/kbn-rison/kbn_rison.ts b/src/platform/packages/shared/kbn-rison/kbn_rison.ts similarity index 100% rename from packages/kbn-rison/kbn_rison.ts rename to src/platform/packages/shared/kbn-rison/kbn_rison.ts diff --git a/packages/kbn-rison/kibana.jsonc b/src/platform/packages/shared/kbn-rison/kibana.jsonc similarity index 100% rename from packages/kbn-rison/kibana.jsonc rename to src/platform/packages/shared/kbn-rison/kibana.jsonc diff --git a/packages/kbn-rison/package.json b/src/platform/packages/shared/kbn-rison/package.json similarity index 100% rename from packages/kbn-rison/package.json rename to src/platform/packages/shared/kbn-rison/package.json diff --git a/packages/kbn-utility-types-jest/tsconfig.json b/src/platform/packages/shared/kbn-rison/tsconfig.json similarity index 78% rename from packages/kbn-utility-types-jest/tsconfig.json rename to src/platform/packages/shared/kbn-rison/tsconfig.json index b72f7b0a15c5c..d49872c3b2cf3 100644 --- a/packages/kbn-utility-types-jest/tsconfig.json +++ b/src/platform/packages/shared/kbn-rison/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-ui-theme/BUILD.bazel b/src/platform/packages/shared/kbn-ui-theme/BUILD.bazel similarity index 100% rename from packages/kbn-ui-theme/BUILD.bazel rename to src/platform/packages/shared/kbn-ui-theme/BUILD.bazel diff --git a/packages/kbn-ui-theme/index.ts b/src/platform/packages/shared/kbn-ui-theme/index.ts similarity index 100% rename from packages/kbn-ui-theme/index.ts rename to src/platform/packages/shared/kbn-ui-theme/index.ts diff --git a/packages/kbn-ui-theme/kibana.jsonc b/src/platform/packages/shared/kbn-ui-theme/kibana.jsonc similarity index 100% rename from packages/kbn-ui-theme/kibana.jsonc rename to src/platform/packages/shared/kbn-ui-theme/kibana.jsonc diff --git a/packages/kbn-ui-theme/package.json b/src/platform/packages/shared/kbn-ui-theme/package.json similarity index 100% rename from packages/kbn-ui-theme/package.json rename to src/platform/packages/shared/kbn-ui-theme/package.json diff --git a/packages/kbn-ui-theme/src/theme.ts b/src/platform/packages/shared/kbn-ui-theme/src/theme.ts similarity index 100% rename from packages/kbn-ui-theme/src/theme.ts rename to src/platform/packages/shared/kbn-ui-theme/src/theme.ts diff --git a/packages/kbn-ui-theme/tsconfig.json b/src/platform/packages/shared/kbn-ui-theme/tsconfig.json similarity index 75% rename from packages/kbn-ui-theme/tsconfig.json rename to src/platform/packages/shared/kbn-ui-theme/tsconfig.json index 74b96e65f9ecf..529f3afb37976 100644 --- a/packages/kbn-ui-theme/tsconfig.json +++ b/src/platform/packages/shared/kbn-ui-theme/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["node"] diff --git a/packages/kbn-utility-types-jest/README.md b/src/platform/packages/shared/kbn-utility-types-jest/README.md similarity index 100% rename from packages/kbn-utility-types-jest/README.md rename to src/platform/packages/shared/kbn-utility-types-jest/README.md diff --git a/packages/kbn-utility-types-jest/index.ts b/src/platform/packages/shared/kbn-utility-types-jest/index.ts similarity index 100% rename from packages/kbn-utility-types-jest/index.ts rename to src/platform/packages/shared/kbn-utility-types-jest/index.ts diff --git a/packages/kbn-utility-types-jest/kibana.jsonc b/src/platform/packages/shared/kbn-utility-types-jest/kibana.jsonc similarity index 100% rename from packages/kbn-utility-types-jest/kibana.jsonc rename to src/platform/packages/shared/kbn-utility-types-jest/kibana.jsonc diff --git a/packages/kbn-utility-types-jest/package.json b/src/platform/packages/shared/kbn-utility-types-jest/package.json similarity index 100% rename from packages/kbn-utility-types-jest/package.json rename to src/platform/packages/shared/kbn-utility-types-jest/package.json diff --git a/packages/kbn-rison/tsconfig.json b/src/platform/packages/shared/kbn-utility-types-jest/tsconfig.json similarity index 78% rename from packages/kbn-rison/tsconfig.json rename to src/platform/packages/shared/kbn-utility-types-jest/tsconfig.json index b72f7b0a15c5c..d49872c3b2cf3 100644 --- a/packages/kbn-rison/tsconfig.json +++ b/src/platform/packages/shared/kbn-utility-types-jest/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-utils/README.md b/src/platform/packages/shared/kbn-utils/README.md similarity index 100% rename from packages/kbn-utils/README.md rename to src/platform/packages/shared/kbn-utils/README.md diff --git a/packages/kbn-utils/index.ts b/src/platform/packages/shared/kbn-utils/index.ts similarity index 100% rename from packages/kbn-utils/index.ts rename to src/platform/packages/shared/kbn-utils/index.ts diff --git a/packages/kbn-utils/jest.config.js b/src/platform/packages/shared/kbn-utils/jest.config.js similarity index 84% rename from packages/kbn-utils/jest.config.js rename to src/platform/packages/shared/kbn-utils/jest.config.js index 6ef6ab4154f1f..dd003e894844d 100644 --- a/packages/kbn-utils/jest.config.js +++ b/src/platform/packages/shared/kbn-utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-utils'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-utils'], }; diff --git a/packages/kbn-utils/kibana.jsonc b/src/platform/packages/shared/kbn-utils/kibana.jsonc similarity index 100% rename from packages/kbn-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-utils/kibana.jsonc diff --git a/packages/kbn-utils/package.json b/src/platform/packages/shared/kbn-utils/package.json similarity index 100% rename from packages/kbn-utils/package.json rename to src/platform/packages/shared/kbn-utils/package.json diff --git a/packages/kbn-utils/src/json/index.test.ts b/src/platform/packages/shared/kbn-utils/src/json/index.test.ts similarity index 100% rename from packages/kbn-utils/src/json/index.test.ts rename to src/platform/packages/shared/kbn-utils/src/json/index.test.ts diff --git a/packages/kbn-utils/src/json/index.ts b/src/platform/packages/shared/kbn-utils/src/json/index.ts similarity index 100% rename from packages/kbn-utils/src/json/index.ts rename to src/platform/packages/shared/kbn-utils/src/json/index.ts diff --git a/packages/kbn-utils/src/path/index.test.ts b/src/platform/packages/shared/kbn-utils/src/path/index.test.ts similarity index 100% rename from packages/kbn-utils/src/path/index.test.ts rename to src/platform/packages/shared/kbn-utils/src/path/index.test.ts diff --git a/packages/kbn-utils/src/path/index.ts b/src/platform/packages/shared/kbn-utils/src/path/index.ts similarity index 100% rename from packages/kbn-utils/src/path/index.ts rename to src/platform/packages/shared/kbn-utils/src/path/index.ts diff --git a/packages/kbn-utils/src/streams/concat_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/concat_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/concat_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/concat_stream.test.ts diff --git a/packages/kbn-utils/src/streams/concat_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/concat_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/concat_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/concat_stream.ts diff --git a/packages/kbn-utils/src/streams/concat_stream_providers.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/concat_stream_providers.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/concat_stream_providers.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/concat_stream_providers.test.ts diff --git a/packages/kbn-utils/src/streams/concat_stream_providers.ts b/src/platform/packages/shared/kbn-utils/src/streams/concat_stream_providers.ts similarity index 100% rename from packages/kbn-utils/src/streams/concat_stream_providers.ts rename to src/platform/packages/shared/kbn-utils/src/streams/concat_stream_providers.ts diff --git a/packages/kbn-utils/src/streams/filter_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/filter_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/filter_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/filter_stream.test.ts diff --git a/packages/kbn-utils/src/streams/filter_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/filter_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/filter_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/filter_stream.ts diff --git a/packages/kbn-utils/src/streams/index.ts b/src/platform/packages/shared/kbn-utils/src/streams/index.ts similarity index 100% rename from packages/kbn-utils/src/streams/index.ts rename to src/platform/packages/shared/kbn-utils/src/streams/index.ts diff --git a/packages/kbn-utils/src/streams/intersperse_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/intersperse_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/intersperse_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/intersperse_stream.test.ts diff --git a/packages/kbn-utils/src/streams/intersperse_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/intersperse_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/intersperse_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/intersperse_stream.ts diff --git a/packages/kbn-utils/src/streams/list_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/list_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/list_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/list_stream.test.ts diff --git a/packages/kbn-utils/src/streams/list_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/list_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/list_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/list_stream.ts diff --git a/packages/kbn-utils/src/streams/map_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/map_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/map_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/map_stream.test.ts diff --git a/packages/kbn-utils/src/streams/map_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/map_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/map_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/map_stream.ts diff --git a/packages/kbn-utils/src/streams/promise_from_streams.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/promise_from_streams.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/promise_from_streams.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/promise_from_streams.test.ts diff --git a/packages/kbn-utils/src/streams/promise_from_streams.ts b/src/platform/packages/shared/kbn-utils/src/streams/promise_from_streams.ts similarity index 100% rename from packages/kbn-utils/src/streams/promise_from_streams.ts rename to src/platform/packages/shared/kbn-utils/src/streams/promise_from_streams.ts diff --git a/packages/kbn-utils/src/streams/reduce_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/reduce_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/reduce_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/reduce_stream.test.ts diff --git a/packages/kbn-utils/src/streams/reduce_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/reduce_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/reduce_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/reduce_stream.ts diff --git a/packages/kbn-utils/src/streams/replace_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/replace_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/replace_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/replace_stream.test.ts diff --git a/packages/kbn-utils/src/streams/replace_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/replace_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/replace_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/replace_stream.ts diff --git a/packages/kbn-utils/src/streams/split_stream.test.ts b/src/platform/packages/shared/kbn-utils/src/streams/split_stream.test.ts similarity index 100% rename from packages/kbn-utils/src/streams/split_stream.test.ts rename to src/platform/packages/shared/kbn-utils/src/streams/split_stream.test.ts diff --git a/packages/kbn-utils/src/streams/split_stream.ts b/src/platform/packages/shared/kbn-utils/src/streams/split_stream.ts similarity index 100% rename from packages/kbn-utils/src/streams/split_stream.ts rename to src/platform/packages/shared/kbn-utils/src/streams/split_stream.ts diff --git a/packages/kbn-utils/tsconfig.json b/src/platform/packages/shared/kbn-utils/tsconfig.json similarity index 83% rename from packages/kbn-utils/tsconfig.json rename to src/platform/packages/shared/kbn-utils/tsconfig.json index 6baa222ef8c37..6912257f35e51 100644 --- a/packages/kbn-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index dfd01eae5ac52..46c4e88ef11d9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -134,8 +134,8 @@ "@kbn/cases-components/*": ["src/platform/packages/shared/kbn-cases-components/*"], "@kbn/cases-plugin": ["x-pack/platform/plugins/shared/cases"], "@kbn/cases-plugin/*": ["x-pack/platform/plugins/shared/cases/*"], - "@kbn/cbor": ["packages/kbn-cbor"], - "@kbn/cbor/*": ["packages/kbn-cbor/*"], + "@kbn/cbor": ["src/platform/packages/shared/kbn-cbor"], + "@kbn/cbor/*": ["src/platform/packages/shared/kbn-cbor/*"], "@kbn/cell-actions": ["src/platform/packages/shared/kbn-cell-actions"], "@kbn/cell-actions/*": ["src/platform/packages/shared/kbn-cell-actions/*"], "@kbn/chart-expressions-common": ["src/plugins/chart_expressions/common"], @@ -1448,12 +1448,12 @@ "@kbn/rendering-plugin/*": ["test/plugin_functional/plugins/rendering_plugin/*"], "@kbn/repo-file-maps": ["packages/kbn-repo-file-maps"], "@kbn/repo-file-maps/*": ["packages/kbn-repo-file-maps/*"], - "@kbn/repo-info": ["packages/kbn-repo-info"], - "@kbn/repo-info/*": ["packages/kbn-repo-info/*"], + "@kbn/repo-info": ["src/platform/packages/shared/kbn-repo-info"], + "@kbn/repo-info/*": ["src/platform/packages/shared/kbn-repo-info/*"], "@kbn/repo-linter": ["packages/kbn-repo-linter"], "@kbn/repo-linter/*": ["packages/kbn-repo-linter/*"], - "@kbn/repo-packages": ["packages/kbn-repo-packages"], - "@kbn/repo-packages/*": ["packages/kbn-repo-packages/*"], + "@kbn/repo-packages": ["src/platform/packages/private/kbn-repo-packages"], + "@kbn/repo-packages/*": ["src/platform/packages/private/kbn-repo-packages/*"], "@kbn/repo-path": ["packages/kbn-repo-path"], "@kbn/repo-path/*": ["packages/kbn-repo-path/*"], "@kbn/repo-source-classifier": ["packages/kbn-repo-source-classifier"], @@ -1498,8 +1498,8 @@ "@kbn/response-ops-rule-params/*": ["src/platform/packages/private/response-ops/rule_params/*"], "@kbn/response-stream-plugin": ["examples/response_stream"], "@kbn/response-stream-plugin/*": ["examples/response_stream/*"], - "@kbn/rison": ["packages/kbn-rison"], - "@kbn/rison/*": ["packages/kbn-rison/*"], + "@kbn/rison": ["src/platform/packages/shared/kbn-rison"], + "@kbn/rison/*": ["src/platform/packages/shared/kbn-rison/*"], "@kbn/rollup": ["x-pack/platform/packages/private/rollup"], "@kbn/rollup/*": ["x-pack/platform/packages/private/rollup/*"], "@kbn/rollup-plugin": ["x-pack/platform/plugins/private/rollup"], @@ -1974,12 +1974,12 @@ "@kbn/ui-actions-plugin/*": ["src/plugins/ui_actions/*"], "@kbn/ui-settings-plugin": ["test/plugin_functional/plugins/ui_settings_plugin"], "@kbn/ui-settings-plugin/*": ["test/plugin_functional/plugins/ui_settings_plugin/*"], - "@kbn/ui-shared-deps-npm": ["packages/kbn-ui-shared-deps-npm"], - "@kbn/ui-shared-deps-npm/*": ["packages/kbn-ui-shared-deps-npm/*"], - "@kbn/ui-shared-deps-src": ["packages/kbn-ui-shared-deps-src"], - "@kbn/ui-shared-deps-src/*": ["packages/kbn-ui-shared-deps-src/*"], - "@kbn/ui-theme": ["packages/kbn-ui-theme"], - "@kbn/ui-theme/*": ["packages/kbn-ui-theme/*"], + "@kbn/ui-shared-deps-npm": ["src/platform/packages/private/kbn-ui-shared-deps-npm"], + "@kbn/ui-shared-deps-npm/*": ["src/platform/packages/private/kbn-ui-shared-deps-npm/*"], + "@kbn/ui-shared-deps-src": ["src/platform/packages/private/kbn-ui-shared-deps-src"], + "@kbn/ui-shared-deps-src/*": ["src/platform/packages/private/kbn-ui-shared-deps-src/*"], + "@kbn/ui-theme": ["src/platform/packages/shared/kbn-ui-theme"], + "@kbn/ui-theme/*": ["src/platform/packages/shared/kbn-ui-theme/*"], "@kbn/unified-data-table": ["src/platform/packages/shared/kbn-unified-data-table"], "@kbn/unified-data-table/*": ["src/platform/packages/shared/kbn-unified-data-table/*"], "@kbn/unified-doc-viewer": ["src/platform/packages/shared/kbn-unified-doc-viewer"], @@ -2022,10 +2022,10 @@ "@kbn/user-profiles-consumer-plugin/*": ["x-pack/test/security_api_integration/plugins/user_profiles_consumer/*"], "@kbn/utility-types": ["packages/kbn-utility-types"], "@kbn/utility-types/*": ["packages/kbn-utility-types/*"], - "@kbn/utility-types-jest": ["packages/kbn-utility-types-jest"], - "@kbn/utility-types-jest/*": ["packages/kbn-utility-types-jest/*"], - "@kbn/utils": ["packages/kbn-utils"], - "@kbn/utils/*": ["packages/kbn-utils/*"], + "@kbn/utility-types-jest": ["src/platform/packages/shared/kbn-utility-types-jest"], + "@kbn/utility-types-jest/*": ["src/platform/packages/shared/kbn-utility-types-jest/*"], + "@kbn/utils": ["src/platform/packages/shared/kbn-utils"], + "@kbn/utils/*": ["src/platform/packages/shared/kbn-utils/*"], "@kbn/ux-plugin": ["x-pack/solutions/observability/plugins/ux"], "@kbn/ux-plugin/*": ["x-pack/solutions/observability/plugins/ux/*"], "@kbn/v8-profiler-examples-plugin": ["examples/v8_profiler_examples"], diff --git a/yarn.lock b/yarn.lock index eb93e9103219a..e2f25f8e328bd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4075,7 +4075,7 @@ version "0.0.0" uid "" -"@kbn/cbor@link:packages/kbn-cbor": +"@kbn/cbor@link:src/platform/packages/shared/kbn-cbor": version "0.0.0" uid "" @@ -6703,7 +6703,7 @@ version "0.0.0" uid "" -"@kbn/repo-info@link:packages/kbn-repo-info": +"@kbn/repo-info@link:src/platform/packages/shared/kbn-repo-info": version "0.0.0" uid "" @@ -6711,7 +6711,7 @@ version "0.0.0" uid "" -"@kbn/repo-packages@link:packages/kbn-repo-packages": +"@kbn/repo-packages@link:src/platform/packages/private/kbn-repo-packages": version "0.0.0" uid "" @@ -6803,7 +6803,7 @@ version "0.0.0" uid "" -"@kbn/rison@link:packages/kbn-rison": +"@kbn/rison@link:src/platform/packages/shared/kbn-rison": version "0.0.0" uid "" @@ -7755,15 +7755,15 @@ version "0.0.0" uid "" -"@kbn/ui-shared-deps-npm@link:packages/kbn-ui-shared-deps-npm": +"@kbn/ui-shared-deps-npm@link:src/platform/packages/private/kbn-ui-shared-deps-npm": version "0.0.0" uid "" -"@kbn/ui-shared-deps-src@link:packages/kbn-ui-shared-deps-src": +"@kbn/ui-shared-deps-src@link:src/platform/packages/private/kbn-ui-shared-deps-src": version "0.0.0" uid "" -"@kbn/ui-theme@link:packages/kbn-ui-theme": +"@kbn/ui-theme@link:src/platform/packages/shared/kbn-ui-theme": version "0.0.0" uid "" @@ -7847,7 +7847,7 @@ version "0.0.0" uid "" -"@kbn/utility-types-jest@link:packages/kbn-utility-types-jest": +"@kbn/utility-types-jest@link:src/platform/packages/shared/kbn-utility-types-jest": version "0.0.0" uid "" @@ -7855,7 +7855,7 @@ version "0.0.0" uid "" -"@kbn/utils@link:packages/kbn-utils": +"@kbn/utils@link:src/platform/packages/shared/kbn-utils": version "0.0.0" uid ""