Skip to content

Commit

Permalink
chore(ui-shared-deps): add @kbn/ebt-tools (#191754)
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo authored Aug 30, 2024
1 parent 6ce2d6b commit 63ca436
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
36 changes: 36 additions & 0 deletions packages/kbn-ebt-tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")

SRCS = glob(
[
"**/*.ts",
"**/*.tsx",
],
exclude = [
"**/*.config.js",
"**/*.mock.*",
"**/*.test.*",
"**/*.stories.*",
"**/__snapshots__/**",
"**/integration_tests/**",
"**/mocks/**",
"**/scripts/**",
"**/storybook/**",
"**/test_fixtures/**",
"**/test_helpers/**",
],
)

SHARED_DEPS = [
"@npm//@elastic/ebt",
"@npm//@elastic/apm-rum-core",
"@npm//react",
"@npm//react-router-dom",
]

js_library(
name = "kbn-ebt-tools",
package_name = "@kbn/ebt-tools",
srcs = ["package.json"] + SRCS,
deps = SHARED_DEPS,
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions packages/kbn-ui-shared-deps-src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ webpack_cli(
"//packages/kbn-ui-theme",
"//packages/kbn-i18n",
"//packages/kbn-i18n-react",
"//packages/kbn-ebt-tools",
"//packages/kbn-esql-ast",
"//packages/kbn-monaco",
"//packages/kbn-datemath",
Expand Down
3 changes: 2 additions & 1 deletion packages/kbn-ui-shared-deps-src/src/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const jsFilename = 'kbn-ui-shared-deps-src.js';
const cssDistFilename = 'kbn-ui-shared-deps-src.css';

/**
* Externals mapping inteded to be used in a webpack config
* Externals mapping intended to be used in a webpack config
*/
const externals = {
/**
Expand Down Expand Up @@ -102,6 +102,7 @@ const externals = {
'@tanstack/react-query-devtools': '__kbnSharedDeps__.ReactQueryDevtools',
'@kbn/code-editor': '__kbnSharedDeps__.KbnCodeEditor',
'@kbn/esql-ast': '__kbnSharedDeps__.KbnEsqlAst',
'@kbn/ebt-tools': '__kbnSharedDeps__.KbnEbtTools',
'@elastic/apm-rum-core': '__kbnSharedDeps__.ElasticApmRumCore',
};

Expand Down
1 change: 1 addition & 0 deletions packages/kbn-ui-shared-deps-src/src/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ export const ReactQuery = require('@tanstack/react-query');
export const ReactQueryDevtools = require('@tanstack/react-query-devtools');
export const KbnCodeEditor = require('@kbn/code-editor');
export const KbnEsqlAst = require('@kbn/esql-ast');
export const KbnEbtTools = require('@kbn/ebt-tools');
export const ElasticApmRumCore = require('@elastic/apm-rum-core');

0 comments on commit 63ca436

Please sign in to comment.