mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
chore(NA): splits types from code on @kbn/utils (#121924)
This commit is contained in:
parent
c3c9195c26
commit
64468b7a3e
14 changed files with 36 additions and 13 deletions
|
@ -603,6 +603,7 @@
|
|||
"@types/kbn__std": "link:bazel-bin/packages/kbn-std/npm_module_types",
|
||||
"@types/kbn__telemetry-tools": "link:bazel-bin/packages/kbn-telemetry-tools/npm_module_types",
|
||||
"@types/kbn__utility-types": "link:bazel-bin/packages/kbn-utility-types/npm_module_types",
|
||||
"@types/kbn__utils": "link:bazel-bin/packages/kbn-utils/npm_module_types",
|
||||
"@types/license-checker": "15.0.0",
|
||||
"@types/listr": "^0.14.0",
|
||||
"@types/loader-utils": "^1.1.3",
|
||||
|
|
|
@ -120,6 +120,7 @@ filegroup(
|
|||
"//packages/kbn-std:build_types",
|
||||
"//packages/kbn-telemetry-tools:build_types",
|
||||
"//packages/kbn-utility-types:build_types",
|
||||
"//packages/kbn-utils:build_types",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ RUNTIME_DEPS = [
|
|||
|
||||
TYPES_DEPS = [
|
||||
"//packages/elastic-safer-lodash-set",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//@elastic/apm-rum",
|
||||
"@npm//@types/jest",
|
||||
"@npm//@types/js-yaml",
|
||||
|
|
|
@ -55,7 +55,7 @@ TYPES_DEPS = [
|
|||
"//packages/kbn-optimizer:npm_module_types",
|
||||
"//packages/kbn-server-http-tools:npm_module_types",
|
||||
"//packages/kbn-std:npm_module_types",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//argsplit",
|
||||
"@npm//chokidar",
|
||||
"@npm//elastic-apm-node",
|
||||
|
|
|
@ -66,7 +66,7 @@ RUNTIME_DEPS = [
|
|||
]
|
||||
|
||||
TYPES_DEPS = [
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//@babel/parser",
|
||||
"@npm//@babel/types",
|
||||
"@npm//@types/babel__core",
|
||||
|
|
|
@ -39,7 +39,7 @@ RUNTIME_DEPS = [
|
|||
TYPES_DEPS = [
|
||||
"//packages/kbn-config:npm_module_types",
|
||||
"//packages/kbn-dev-utils:npm_module_types",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//ts-morph",
|
||||
"@npm//@types/dedent",
|
||||
"@npm//@types/jest",
|
||||
|
|
|
@ -46,7 +46,7 @@ RUNTIME_DEPS = [
|
|||
TYPES_DEPS = [
|
||||
"//packages/kbn-dev-utils:npm_module_types",
|
||||
"//packages/kbn-test",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//@elastic/elasticsearch",
|
||||
"@npm//aggregate-error",
|
||||
"@npm//globby",
|
||||
|
|
|
@ -71,7 +71,7 @@ TYPES_DEPS = [
|
|||
"//packages/kbn-std:npm_module_types",
|
||||
"//packages/kbn-ui-shared-deps-npm",
|
||||
"//packages/kbn-ui-shared-deps-src",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//chalk",
|
||||
"@npm//clean-webpack-plugin",
|
||||
"@npm//cpy",
|
||||
|
|
|
@ -51,7 +51,7 @@ RUNTIME_DEPS = [
|
|||
]
|
||||
|
||||
TYPES_DEPS = [
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"//packages/kbn-dev-utils:npm_module_types",
|
||||
"@npm//del",
|
||||
"@npm//execa",
|
||||
|
|
|
@ -45,7 +45,7 @@ RUNTIME_DEPS = [
|
|||
TYPES_DEPS = [
|
||||
"//packages/kbn-dev-utils:npm_module_types",
|
||||
"//packages/kbn-optimizer:npm_module_types",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//del",
|
||||
"@npm//execa",
|
||||
"@npm//globby",
|
||||
|
|
|
@ -51,7 +51,7 @@ TYPES_DEPS = [
|
|||
"//packages/kbn-dev-utils:npm_module_types",
|
||||
"//packages/kbn-ui-shared-deps-npm",
|
||||
"//packages/kbn-ui-shared-deps-src",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"@npm//@storybook/addons",
|
||||
"@npm//@storybook/api",
|
||||
"@npm//@storybook/components",
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
||||
load("//src/dev/bazel:index.bzl", "jsts_transpiler")
|
||||
load("@npm//@bazel/typescript:index.bzl", "ts_config")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
|
||||
|
||||
PKG_BASE_NAME = "kbn-utils"
|
||||
PKG_REQUIRE_NAME = "@kbn/utils"
|
||||
TYPES_PKG_REQUIRE_NAME = "@types/kbn__utils"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
|
@ -89,3 +90,20 @@ filegroup(
|
|||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm_types(
|
||||
name = "npm_module_types",
|
||||
srcs = SRCS,
|
||||
deps = [":tsc_types"],
|
||||
package_name = TYPES_PKG_REQUIRE_NAME,
|
||||
tsconfig = ":tsconfig",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build_types",
|
||||
srcs = [
|
||||
":npm_module_types",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"name": "@kbn/utils",
|
||||
"main": "./target_node/index.js",
|
||||
"types": "./target_types/index.d.ts",
|
||||
"version": "1.0.0",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"private": true
|
||||
|
|
|
@ -6009,6 +6009,10 @@
|
|||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"@types/kbn__utils@link:bazel-bin/packages/kbn-utils/npm_module_types":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"@types/keyv@*":
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.1.tgz#e45a45324fca9dab716ab1230ee249c9fb52cfa7"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue