kibana/packages
Tiago Costa e41569b4a6
fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463)
* chore(NA): remove overrides for rootDir on packages

* chore(NA): replace './target_types' with 'target_types' on packages

* chore(NA): removes stripInternal false configs

* chore(NA): remove unused strip internals
2022-11-03 01:04:55 +00:00
..
analytics fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
content-management fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
core fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
home fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ace fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-alerts [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-ambient-storybook-types fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ambient-ui-types fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-analytics fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-apm-config-loader fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-apm-synthtrace [APM] Prefix services from synthtrace scenarios with “synth” instead of “opbeans” (#144416) 2022-11-02 17:07:49 +00:00
kbn-apm-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-axe-config fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-babel-plugin-synthetic-packages [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-babel-preset Update dependency core-js to ^3.26.0 (main) (#144211) 2022-10-31 10:46:49 -07:00
kbn-bazel-packages fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-bazel-runner fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-cases-components fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-chart-icons [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-ci-stats-core fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ci-stats-performance-metrics fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ci-stats-reporter fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-cli-dev-mode fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-coloring fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-config fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-config-mocks fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-config-schema [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-crypto fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-crypto-browser fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-datemath [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-dev-cli-errors fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-dev-cli-runner fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-dev-proc-runner fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-dev-utils fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-doc-links fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-docs-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-ebt-tools remove unnecessary import aliases (#144250) 2022-10-31 17:56:59 +01:00
kbn-es fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-es-archiver fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-es-errors fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-es-query fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-es-types fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-eslint-config [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-eslint-plugin-disable fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-eslint-plugin-eslint [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-eslint-plugin-imports fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-expect [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-failed-test-reporter-cli fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-field-types fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-find-used-node-modules fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-flot-charts [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-ftr-common-functional-services fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ftr-screenshot-filename fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-generate fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-get-repo-files fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-guided-onboarding fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-handlebars fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-hapi-mocks fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-i18n fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-i18n-react fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-import-resolver fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-interpreter fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-io-ts-utils fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-jest-serializers fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-journeys fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-kibana-manifest-schema fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-language-documentation-popover fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-logging fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-logging-mocks fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-managed-vscode-config fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-managed-vscode-config-cli fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-mapbox-gl [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-monaco fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-optimizer fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-optimizer-webpack-helpers fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-osquery-io-ts-types [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-performance-testing-dataset-extractor fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-plugin-discovery fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-plugin-generator [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-plugin-helpers [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-react-field fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-repo-source-classifier fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-repo-source-classifier-cli fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-rule-data-utils fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-safer-lodash-set [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-autocomplete [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-es-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-exception-list-components fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-securitysolution-hook-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-io-ts-alerting-types [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-io-ts-list-types [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-io-ts-types [Security Solution] [Exceptions] Updates the exceptions list table to match mockups (#142289) 2022-11-02 08:41:48 -07:00
kbn-securitysolution-io-ts-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-list-api [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-list-constants [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-list-hooks [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-list-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-rules [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-t-grid [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-securitysolution-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-server-http-tools fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-server-route-repository fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-shared-svg fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-shared-ux-utility fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-some-dev-log fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-sort-package-json fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-spec-to-console [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-std fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-stdio-dev-helpers fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-storybook [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-synthetic-package-map fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-telemetry-tools fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-test fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-test-jest-helpers fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-test-subj-selector fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-timelion-grammar [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-tinymath [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-tooling-log fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-type-summarizer fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-type-summarizer-cli fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-type-summarizer-core fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-typed-react-router-config fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ui-framework [bazel] fix some BUILD.bazel file inconsistencies 2022-10-26 11:07:55 -05:00
kbn-ui-shared-deps-npm fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ui-shared-deps-src fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-ui-theme fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-user-profile-components fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-utility-types fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-utility-types-jest fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
kbn-utils [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
kbn-yarn-lock-validator fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
shared-ux fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00
BUILD.bazel IDM: Migrate core server-side core_app to package (#144075) 2022-11-02 12:00:17 -07:00
README.md [kbn/pm] rewrite to avoid needing a build process (#136207) 2022-07-18 08:46:13 -07:00

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

Creating a new package

Create a new sub-folder. The name of the folder should mirror the name in the package's package.json. E.g. if the name is @kbn/i18n the folder name should be kbn-i18n.

All new packages should use the @kbn namespace, and should be marked with "private": true.

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.