Skip to content

Commit

Permalink
[8.x] Sustainable Kibana Architecture: Move modules owned by `@elasti…
Browse files Browse the repository at this point in the history
…c/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)](#202739)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-31T12:47:59Z","message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-operations`
(#202739)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana
modules (plugins and\npackages) into a new folder structure, according
to the _Sustainable\nKibana Architecture_ initiative.\n\n>
[!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in
the error section below (if there are\nany).\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code
(Babel and Eslint config files), and update them\nappropriately.\n> *
Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts`
to ensure that\nany CI pipeline customizations continue to be correctly
applied after\nthe changed path names\n> * Review all of the updated
files, specially the `.ts` and `.js` files\nlisted in the sections
below, as some of them contain relative paths\nthat have been
updated.\n> * Think of potential impact of the move, including tooling
and\nconfiguration files that can be pointing to the relocated modules.
E.g.:\n> * customised eslint rules\n> * docs pointing to source
code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual
contributions will be lost if the 'relocate' script is\nre-run.\n> * Try
to obtain the missing reviews / approvals before applying manual\nfixes,
and/or keep your changes in a .patch / git stash.\n> * Please
use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack
channel for feedback.\n\nAre you trying to rebase this PR to solve merge
conflicts? Please follow\nthe steps
describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n####
9 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| --
| ------------- |\n| `@kbn/cbor` |
`src/platform/packages/shared/kbn-cbor` |\n| `@kbn/repo-info` |
`src/platform/packages/shared/kbn-repo-info` |\n| `@kbn/repo-packages`
|\n`src/platform/packages/private/kbn-repo-packages` |\n| `@kbn/rison` |
`src/platform/packages/shared/kbn-rison` |\n| `@kbn/ui-shared-deps-npm`
|\n`src/platform/packages/private/kbn-ui-shared-deps-npm` |\n|
`@kbn/ui-shared-deps-src`
|\n`src/platform/packages/private/kbn-ui-shared-deps-src` |\n|
`@kbn/ui-theme` | `src/platform/packages/shared/kbn-ui-theme` |\n|
`@kbn/utility-types-jest`
|\n`src/platform/packages/shared/kbn-utility-types-jest` |\n|
`@kbn/utils` | `src/platform/packages/shared/kbn-utils` |\n\n\n<details
>\n<summary>Updated
references</summary>\n\n```\n./kbn_pm/src/lib/bazel.mjs\n./kbn_pm/src/lib/external_packages.js\n./package.json\n./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts\n./packages/kbn-babel-register/BUILD.bazel\n./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts\n./packages/kbn-monaco/BUILD.bazel\n./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts\n./packages/kbn-repo-packages/package-map.json\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-ui-shared-deps-npm/BUILD.bazel\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\n./src/dev/build/tasks/build_packages_task.ts\n./src/platform/packages/private/kbn-repo-packages/jest.config.js\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-cbor/jest.config.js\n./src/platform/packages/shared/kbn-repo-info/jest.config.js\n./src/platform/packages/shared/kbn-rison/jest.config.js\n./src/platform/packages/shared/kbn-utils/jest.config.js\n./tsconfig.base.json\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/packages/private/kbn-repo-packages/jest.config.js:12\nsrc/platform/packages/private/kbn-repo-packages/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2\nsrc/platform/packages/shared/kbn-cbor/jest.config.js:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:2\nsrc/platform/packages/shared/kbn-repo-info/jest.config.js:12\nsrc/platform/packages/shared/kbn-repo-info/tsconfig.json:2\nsrc/platform/packages/shared/kbn-rison/jest.config.js:12\nsrc/platform/packages/shared/kbn-rison/tsconfig.json:2\nsrc/platform/packages/shared/kbn-ui-theme/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utils/jest.config.js:12\nsrc/platform/packages/shared/kbn-utils/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by:
Alex Szabo <[email protected]>\nCo-authored-by: Jonathan Budzenski
<[email protected]>\nCo-authored-by: Michael Dokolin
<[email protected]>","sha":"6a25db96053ae5dd39a7f2d4c4ac27182fd92bc4","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Operations","release_note:skip","v9.0.0","backport:version","v8.18.0","plugin
groups"],"number":202739,"url":"https://github.com/elastic/kibana/pull/202739","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-operations`
(#202739)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana
modules (plugins and\npackages) into a new folder structure, according
to the _Sustainable\nKibana Architecture_ initiative.\n\n>
[!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in
the error section below (if there are\nany).\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code
(Babel and Eslint config files), and update them\nappropriately.\n> *
Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts`
to ensure that\nany CI pipeline customizations continue to be correctly
applied after\nthe changed path names\n> * Review all of the updated
files, specially the `.ts` and `.js` files\nlisted in the sections
below, as some of them contain relative paths\nthat have been
updated.\n> * Think of potential impact of the move, including tooling
and\nconfiguration files that can be pointing to the relocated modules.
E.g.:\n> * customised eslint rules\n> * docs pointing to source
code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual
contributions will be lost if the 'relocate' script is\nre-run.\n> * Try
to obtain the missing reviews / approvals before applying manual\nfixes,
and/or keep your changes in a .patch / git stash.\n> * Please
use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack
channel for feedback.\n\nAre you trying to rebase this PR to solve merge
conflicts? Please follow\nthe steps
describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n####
9 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| --
| ------------- |\n| `@kbn/cbor` |
`src/platform/packages/shared/kbn-cbor` |\n| `@kbn/repo-info` |
`src/platform/packages/shared/kbn-repo-info` |\n| `@kbn/repo-packages`
|\n`src/platform/packages/private/kbn-repo-packages` |\n| `@kbn/rison` |
`src/platform/packages/shared/kbn-rison` |\n| `@kbn/ui-shared-deps-npm`
|\n`src/platform/packages/private/kbn-ui-shared-deps-npm` |\n|
`@kbn/ui-shared-deps-src`
|\n`src/platform/packages/private/kbn-ui-shared-deps-src` |\n|
`@kbn/ui-theme` | `src/platform/packages/shared/kbn-ui-theme` |\n|
`@kbn/utility-types-jest`
|\n`src/platform/packages/shared/kbn-utility-types-jest` |\n|
`@kbn/utils` | `src/platform/packages/shared/kbn-utils` |\n\n\n<details
>\n<summary>Updated
references</summary>\n\n```\n./kbn_pm/src/lib/bazel.mjs\n./kbn_pm/src/lib/external_packages.js\n./package.json\n./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts\n./packages/kbn-babel-register/BUILD.bazel\n./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts\n./packages/kbn-monaco/BUILD.bazel\n./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts\n./packages/kbn-repo-packages/package-map.json\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-ui-shared-deps-npm/BUILD.bazel\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\n./src/dev/build/tasks/build_packages_task.ts\n./src/platform/packages/private/kbn-repo-packages/jest.config.js\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-cbor/jest.config.js\n./src/platform/packages/shared/kbn-repo-info/jest.config.js\n./src/platform/packages/shared/kbn-rison/jest.config.js\n./src/platform/packages/shared/kbn-utils/jest.config.js\n./tsconfig.base.json\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/packages/private/kbn-repo-packages/jest.config.js:12\nsrc/platform/packages/private/kbn-repo-packages/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2\nsrc/platform/packages/shared/kbn-cbor/jest.config.js:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:2\nsrc/platform/packages/shared/kbn-repo-info/jest.config.js:12\nsrc/platform/packages/shared/kbn-repo-info/tsconfig.json:2\nsrc/platform/packages/shared/kbn-rison/jest.config.js:12\nsrc/platform/packages/shared/kbn-rison/tsconfig.json:2\nsrc/platform/packages/shared/kbn-ui-theme/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utils/jest.config.js:12\nsrc/platform/packages/shared/kbn-utils/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by:
Alex Szabo <[email protected]>\nCo-authored-by: Jonathan Budzenski
<[email protected]>\nCo-authored-by: Michael Dokolin
<[email protected]>","sha":"6a25db96053ae5dd39a7f2d4c4ac27182fd92bc4"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202739","number":202739,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by `@elastic/kibana-operations`
(#202739)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana
modules (plugins and\npackages) into a new folder structure, according
to the _Sustainable\nKibana Architecture_ initiative.\n\n>
[!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in
the error section below (if there are\nany).\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code
(Babel and Eslint config files), and update them\nappropriately.\n> *
Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts`
to ensure that\nany CI pipeline customizations continue to be correctly
applied after\nthe changed path names\n> * Review all of the updated
files, specially the `.ts` and `.js` files\nlisted in the sections
below, as some of them contain relative paths\nthat have been
updated.\n> * Think of potential impact of the move, including tooling
and\nconfiguration files that can be pointing to the relocated modules.
E.g.:\n> * customised eslint rules\n> * docs pointing to source
code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual
contributions will be lost if the 'relocate' script is\nre-run.\n> * Try
to obtain the missing reviews / approvals before applying manual\nfixes,
and/or keep your changes in a .patch / git stash.\n> * Please
use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack
channel for feedback.\n\nAre you trying to rebase this PR to solve merge
conflicts? Please follow\nthe steps
describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n####
9 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| --
| ------------- |\n| `@kbn/cbor` |
`src/platform/packages/shared/kbn-cbor` |\n| `@kbn/repo-info` |
`src/platform/packages/shared/kbn-repo-info` |\n| `@kbn/repo-packages`
|\n`src/platform/packages/private/kbn-repo-packages` |\n| `@kbn/rison` |
`src/platform/packages/shared/kbn-rison` |\n| `@kbn/ui-shared-deps-npm`
|\n`src/platform/packages/private/kbn-ui-shared-deps-npm` |\n|
`@kbn/ui-shared-deps-src`
|\n`src/platform/packages/private/kbn-ui-shared-deps-src` |\n|
`@kbn/ui-theme` | `src/platform/packages/shared/kbn-ui-theme` |\n|
`@kbn/utility-types-jest`
|\n`src/platform/packages/shared/kbn-utility-types-jest` |\n|
`@kbn/utils` | `src/platform/packages/shared/kbn-utils` |\n\n\n<details
>\n<summary>Updated
references</summary>\n\n```\n./kbn_pm/src/lib/bazel.mjs\n./kbn_pm/src/lib/external_packages.js\n./package.json\n./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts\n./packages/kbn-babel-register/BUILD.bazel\n./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts\n./packages/kbn-monaco/BUILD.bazel\n./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts\n./packages/kbn-repo-packages/package-map.json\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-ui-shared-deps-npm/BUILD.bazel\n./packages/kbn-ui-shared-deps-src/BUILD.bazel\n./src/dev/build/tasks/build_packages_task.ts\n./src/platform/packages/private/kbn-repo-packages/jest.config.js\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-cbor/jest.config.js\n./src/platform/packages/shared/kbn-repo-info/jest.config.js\n./src/platform/packages/shared/kbn-rison/jest.config.js\n./src/platform/packages/shared/kbn-utils/jest.config.js\n./tsconfig.base.json\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details
>\n<summary>Updated relative
paths</summary>\n\n```\nsrc/platform/packages/private/kbn-repo-packages/jest.config.js:12\nsrc/platform/packages/private/kbn-repo-packages/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2\nsrc/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2\nsrc/platform/packages/shared/kbn-cbor/jest.config.js:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:12\nsrc/platform/packages/shared/kbn-cbor/tsconfig.json:2\nsrc/platform/packages/shared/kbn-repo-info/jest.config.js:12\nsrc/platform/packages/shared/kbn-repo-info/tsconfig.json:2\nsrc/platform/packages/shared/kbn-rison/jest.config.js:12\nsrc/platform/packages/shared/kbn-rison/tsconfig.json:2\nsrc/platform/packages/shared/kbn-ui-theme/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2\nsrc/platform/packages/shared/kbn-utils/jest.config.js:12\nsrc/platform/packages/shared/kbn-utils/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by:
Alex Szabo <[email protected]>\nCo-authored-by: Jonathan Budzenski
<[email protected]>\nCo-authored-by: Michael Dokolin
<[email protected]>","sha":"6a25db96053ae5dd39a7f2d4c4ac27182fd92bc4"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Gerard Soldevila <[email protected]>
  • Loading branch information
dokmic and gsoldevila authored Dec 31, 2024
1 parent 6ecf198 commit 60d378b
Show file tree
Hide file tree
Showing 128 changed files with 89 additions and 88 deletions.
4 changes: 2 additions & 2 deletions .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/,
Expand All @@ -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/,
Expand Down
18 changes: 9 additions & 9 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
4 changes: 2 additions & 2 deletions kbn_pm/src/lib/bazel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];

Expand Down
2 changes: 1 addition & 1 deletion kbn_pm/src/lib/external_packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']() {
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions packages/kbn-babel-register/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
]

Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-eslint-plugin-imports/src/helpers/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-monaco/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`] : []),
Expand Down
4 changes: 2 additions & 2 deletions src/dev/build/tasks/build_packages_task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-rison'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/private/kbn-repo-packages'],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"checkJs": true,
"outDir": "target/types",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"checkJs": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-cbor'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/kbn-cbor'],
};
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand All @@ -9,7 +9,7 @@
},
"include": [
"**/*.ts",
"../../typings/borc.d.ts"
"../../../../../typings/borc.d.ts"
],
"exclude": [
"target/**/*"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-repo-info'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/kbn-repo-info'],
};
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"checkJs": true,
"outDir": "target/types",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

module.exports = {
preset: '@kbn/test/jest_node',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-repo-packages'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/kbn-rison'],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": ["node"]
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../..',
roots: ['<rootDir>/packages/kbn-utils'],
rootDir: '../../../../..',
roots: ['<rootDir>/src/platform/packages/shared/kbn-utils'],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"types": [
Expand Down
Loading

0 comments on commit 60d378b

Please sign in to comment.