diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 0f46dd8d75496..6f24a392b2936 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 b881ae2b86795..0d183058acb22 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -269,7 +269,6 @@ packages/kbn-bazel-runner @elastic/kibana-operations packages/kbn-calculate-auto @elastic/obs-ux-management-team packages/kbn-calculate-width-from-char-count @elastic/kibana-visualizations packages/kbn-capture-oas-snapshot-cli @elastic/kibana-core -packages/kbn-cbor @elastic/kibana-operations packages/kbn-chart-icons @elastic/kibana-visualizations packages/kbn-charts-theme @elastic/kibana-visualizations packages/kbn-check-mappings-update-cli @elastic/kibana-core @@ -370,9 +369,7 @@ packages/kbn-react-mute-legacy-root-warning @elastic/appex-sharedux packages/kbn-recently-accessed @elastic/appex-sharedux packages/kbn-relocate @elastic/kibana-core packages/kbn-repo-file-maps @elastic/kibana-operations -packages/kbn-repo-info @elastic/kibana-operations packages/kbn-repo-linter @elastic/kibana-operations -packages/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 @@ -387,7 +384,6 @@ packages/kbn-reporting/get_csv_panel_actions @elastic/appex-sharedux packages/kbn-reporting/mocks_server @elastic/appex-sharedux packages/kbn-reporting/public @elastic/appex-sharedux packages/kbn-reporting/server @elastic/appex-sharedux -packages/kbn-rison @elastic/kibana-operations packages/kbn-router-to-openapispec @elastic/kibana-core packages/kbn-safer-lodash-set @elastic/kibana-security packages/kbn-saved-objects-settings @elastic/appex-sharedux @@ -418,14 +414,9 @@ packages/kbn-transpose-utils @elastic/kibana-visualizations packages/kbn-ts-projects @elastic/kibana-operations packages/kbn-ts-type-check-cli @elastic/kibana-operations packages/kbn-ui-actions-browser @elastic/appex-sharedux -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 packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team packages/kbn-user-profile-components @elastic/kibana-security packages/kbn-utility-types @elastic/kibana-core -packages/kbn-utility-types-jest @elastic/kibana-operations -packages/kbn-utils @elastic/kibana-operations packages/kbn-validate-next-docs-cli @elastic/kibana-operations packages/kbn-visualization-ui-components @elastic/kibana-visualizations packages/kbn-visualization-utils @elastic/kibana-visualizations @@ -520,6 +511,9 @@ src/platform/packages/private/kbn-management/settings/components/field_category src/platform/packages/private/kbn-management/settings/components/form @elastic/kibana-management src/platform/packages/private/kbn-mapbox-gl @elastic/kibana-presentation src/platform/packages/private/kbn-panel-loader @elastic/kibana-presentation +src/platform/packages/private/kbn-repo-packages @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/private/kbn-unsaved-changes-badge @elastic/kibana-data-discovery src/platform/packages/private/response-ops/rule_params @elastic/response-ops src/platform/packages/shared/deeplinks/analytics @elastic/kibana-data-discovery @elastic/kibana-presentation @elastic/kibana-visualizations @@ -538,6 +532,7 @@ src/platform/packages/shared/kbn-apm-data-view @elastic/obs-ux-infra_services-te src/platform/packages/shared/kbn-apm-utils @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-avc-banner @elastic/security-defend-workflows src/platform/packages/shared/kbn-cases-components @elastic/response-ops +src/platform/packages/shared/kbn-cbor @elastic/kibana-operations src/platform/packages/shared/kbn-cell-actions @elastic/security-threat-hunting-explore src/platform/packages/shared/kbn-content-management-utils @elastic/kibana-data-discovery src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team @@ -568,7 +563,9 @@ src/platform/packages/shared/kbn-osquery-io-ts-types @elastic/security-asset-man src/platform/packages/shared/kbn-profiling-utils @elastic/obs-ux-infra_services-team src/platform/packages/shared/kbn-react-field @elastic/kibana-data-discovery src/platform/packages/shared/kbn-react-hooks @elastic/obs-ux-logs-team +src/platform/packages/shared/kbn-repo-info @elastic/kibana-operations src/platform/packages/shared/kbn-resizable-layout @elastic/kibana-data-discovery +src/platform/packages/shared/kbn-rison @elastic/kibana-operations src/platform/packages/shared/kbn-router-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-rrule @elastic/response-ops src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team @@ -593,10 +590,13 @@ src/platform/packages/shared/kbn-timerange @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-triggers-actions-ui-types @elastic/response-ops src/platform/packages/shared/kbn-try-in-console @elastic/search-kibana src/platform/packages/shared/kbn-typed-react-router-config @elastic/obs-knowledge-team @elastic/obs-ux-infra_services-team +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 src/platform/packages/shared/kbn-unified-field-list @elastic/kibana-data-discovery src/platform/packages/shared/kbn-unsaved-changes-prompt @elastic/kibana-management +src/platform/packages/shared/kbn-utility-types-jest @elastic/kibana-operations +src/platform/packages/shared/kbn-utils @elastic/kibana-operations src/platform/packages/shared/kbn-xstate-utils @elastic/obs-ux-logs-team src/platform/packages/shared/kbn-zod-helpers @elastic/security-detection-rule-management src/platform/packages/shared/presentation/presentation_containers @elastic/kibana-presentation 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 ff1a27daab3c7..f94ea7e667dfb 100644 --- a/package.json +++ b/package.json @@ -202,7 +202,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", @@ -745,8 +745,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", @@ -766,7 +766,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", @@ -981,9 +981,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", @@ -1005,8 +1005,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 f89bd41404633..b37bf3c216e00 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 @@ -9,7 +9,7 @@ /** * 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 = ({ name, darkMode }: { name: string; darkMode: boolean }) => { return `${name}${darkMode ? 'dark' : 'light'}`; 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 6fe4c6849f402..08efd5863c147 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 8653fe4890809..74025ceb7f476 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 2f013ee04c273..0bc6612af95f5 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -130,8 +130,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"], @@ -1452,12 +1452,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"], @@ -1502,8 +1502,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"], @@ -1976,12 +1976,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"], @@ -2024,10 +2024,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 75275a528ed76..d5579517ef207 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4077,7 +4077,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 "" @@ -6721,7 +6721,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 "" @@ -6729,7 +6729,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 "" @@ -6821,7 +6821,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 "" @@ -7769,15 +7769,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 "" @@ -7861,7 +7861,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 "" @@ -7869,7 +7869,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 ""