Skip to content

Commit

Permalink
Sustainable Kibana Architecture: Move modules owned by `@elastic/kiba…
Browse files Browse the repository at this point in the history
…na-operations` (#202739)

## Summary

This PR aims at relocating some of the Kibana modules (plugins and
packages) into a new folder structure, according to the _Sustainable
Kibana Architecture_ initiative.

> [!IMPORTANT]
> * We kindly ask you to:
> * Manually fix the errors in the error section below (if there are
any).
> * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the
source code (Babel and Eslint config files), and update them
appropriately.
> * Manually review
`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that
any CI pipeline customizations continue to be correctly applied after
the changed path names
> * Review all of the updated files, specially the `.ts` and `.js` files
listed in the sections below, as some of them contain relative paths
that have been updated.
> * Think of potential impact of the move, including tooling and
configuration files that can be pointing to the relocated modules. E.g.:
>     * customised eslint rules
>     * docs pointing to source code

> [!NOTE]
> * This PR has been auto-generated.
> * Any manual contributions will be lost if the 'relocate' script is
re-run.
> * Try to obtain the missing reviews / approvals before applying manual
fixes, and/or keep your changes in a .patch / git stash.
> * Please use
[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)
Slack channel for feedback.

Are you trying to rebase this PR to solve merge conflicts? Please follow
the steps describe
[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).

#### 9 packages(s) are going to be relocated:

| Id | Target folder |
| -- | ------------- |
| `@kbn/cbor` | `src/platform/packages/shared/kbn-cbor` |
| `@kbn/repo-info` | `src/platform/packages/shared/kbn-repo-info` |
| `@kbn/repo-packages` |
`src/platform/packages/private/kbn-repo-packages` |
| `@kbn/rison` | `src/platform/packages/shared/kbn-rison` |
| `@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-theme` | `src/platform/packages/shared/kbn-ui-theme` |
| `@kbn/utility-types-jest` |
`src/platform/packages/shared/kbn-utility-types-jest` |
| `@kbn/utils` | `src/platform/packages/shared/kbn-utils` |


<details >
<summary>Updated references</summary>

```
./kbn_pm/src/lib/bazel.mjs
./kbn_pm/src/lib/external_packages.js
./package.json
./packages/core/rendering/core-rendering-server-internal/src/bootstrap/get_theme_tag.ts
./packages/kbn-babel-register/BUILD.bazel
./packages/kbn-eslint-plugin-imports/src/helpers/groups.ts
./packages/kbn-monaco/BUILD.bazel
./packages/kbn-plugin-helpers/src/tasks/bazel_packages.ts
./packages/kbn-repo-packages/package-map.json
./packages/kbn-ts-projects/config-paths.json
./packages/kbn-ui-shared-deps-npm/BUILD.bazel
./packages/kbn-ui-shared-deps-src/BUILD.bazel
./src/dev/build/tasks/build_packages_task.ts
./src/platform/packages/private/kbn-repo-packages/jest.config.js
./src/platform/packages/private/kbn-repo-packages/package-map.json
./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel
./src/platform/packages/shared/kbn-cbor/jest.config.js
./src/platform/packages/shared/kbn-repo-info/jest.config.js
./src/platform/packages/shared/kbn-rison/jest.config.js
./src/platform/packages/shared/kbn-utils/jest.config.js
./tsconfig.base.json
./yarn.lock
.github/CODEOWNERS
```

</details><details >
<summary>Updated relative paths</summary>

```
src/platform/packages/private/kbn-repo-packages/jest.config.js:12
src/platform/packages/private/kbn-repo-packages/tsconfig.json:2
src/platform/packages/private/kbn-ui-shared-deps-npm/tsconfig.json:2
src/platform/packages/private/kbn-ui-shared-deps-src/tsconfig.json:2
src/platform/packages/shared/kbn-cbor/jest.config.js:12
src/platform/packages/shared/kbn-cbor/tsconfig.json:12
src/platform/packages/shared/kbn-cbor/tsconfig.json:2
src/platform/packages/shared/kbn-repo-info/jest.config.js:12
src/platform/packages/shared/kbn-repo-info/tsconfig.json:2
src/platform/packages/shared/kbn-rison/jest.config.js:12
src/platform/packages/shared/kbn-rison/tsconfig.json:2
src/platform/packages/shared/kbn-ui-theme/tsconfig.json:2
src/platform/packages/shared/kbn-utility-types-jest/tsconfig.json:2
src/platform/packages/shared/kbn-utils/jest.config.js:12
src/platform/packages/shared/kbn-utils/tsconfig.json:2
```

</details>

---------

Co-authored-by: Alex Szabo <[email protected]>
Co-authored-by: Jonathan Budzenski <[email protected]>
Co-authored-by: Michael Dokolin <[email protected]>
  • Loading branch information
4 people authored Dec 31, 2024
1 parent 187eb73 commit 6a25db9
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 @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
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 @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'}`;
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.
Loading

0 comments on commit 6a25db9

Please sign in to comment.