mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
This commit is contained in:
parent
d414f7a292
commit
380b7f7424
6 changed files with 29 additions and 12 deletions
|
@ -528,7 +528,6 @@
|
|||
"@types/file-saver": "^2.0.0",
|
||||
"@types/flot": "^0.0.31",
|
||||
"@types/geojson": "7946.0.7",
|
||||
"@types/getopts": "^2.0.1",
|
||||
"@types/getos": "^3.0.0",
|
||||
"@types/glob": "^7.1.2",
|
||||
"@types/gulp": "^4.0.6",
|
||||
|
@ -565,6 +564,7 @@
|
|||
"@types/kbn__config": "link:bazel-bin/packages/kbn-config/npm_module_types",
|
||||
"@types/kbn__config-schema": "link:bazel-bin/packages/kbn-config-schema/npm_module_types",
|
||||
"@types/kbn__crypto": "link:bazel-bin/packages/kbn-crypto/npm_module_types",
|
||||
"@types/kbn__docs-utils": "link:bazel-bin/packages/kbn-docs-utils/npm_module_types",
|
||||
"@types/kbn__i18n": "link:bazel-bin/packages/kbn-i18n/npm_module_types",
|
||||
"@types/kbn__i18n-react": "link:bazel-bin/packages/kbn-i18n-react/npm_module_types",
|
||||
"@types/license-checker": "15.0.0",
|
||||
|
|
|
@ -85,6 +85,7 @@ filegroup(
|
|||
"//packages/kbn-config:build_types",
|
||||
"//packages/kbn-config-schema:build_types",
|
||||
"//packages/kbn-crypto:build_types",
|
||||
"//packages/kbn-docs-utils:build_types",
|
||||
"//packages/kbn-i18n:build_types",
|
||||
"//packages/kbn-i18n-react:build_types",
|
||||
],
|
||||
|
|
|
@ -60,12 +60,12 @@ TYPES_DEPS = [
|
|||
"@npm//chokidar",
|
||||
"@npm//elastic-apm-node",
|
||||
"@npm//execa",
|
||||
"@npm//getopts",
|
||||
"@npm//moment",
|
||||
"@npm//rxjs",
|
||||
"@npm//supertest",
|
||||
"@npm//@types/hapi__h2o2",
|
||||
"@npm//@types/hapi__hapi",
|
||||
"@npm//@types/getopts",
|
||||
"@npm//@types/jest",
|
||||
"@npm//@types/lodash",
|
||||
"@npm//@types/node",
|
||||
|
|
|
@ -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-docs-utils"
|
||||
PKG_REQUIRE_NAME = "@kbn/docs-utils"
|
||||
TYPES_PKG_REQUIRE_NAME = "@types/kbn__docs-utils"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
|
@ -77,7 +78,7 @@ ts_project(
|
|||
js_library(
|
||||
name = PKG_BASE_NAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES,
|
||||
deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
|
||||
deps = RUNTIME_DEPS + [":target_node"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
@ -96,3 +97,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"],
|
||||
)
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"private": "true",
|
||||
"main": "target_node/index.js",
|
||||
"types": "target_types/index.d.ts",
|
||||
"kibana": {
|
||||
"devOnly": true
|
||||
}
|
||||
|
|
|
@ -5477,11 +5477,6 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad"
|
||||
integrity sha512-wE2v81i4C4Ol09RtsWFAqg3BUitWbHSpSlIo+bNdsCJijO9sjme+zm+73ZMCa/qMC8UEERxzGbvmr1cffo2SiQ==
|
||||
|
||||
"@types/getopts@^2.0.1":
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/getopts/-/getopts-2.0.1.tgz#b7e5478fe7571838b45aff736a59ab69b8bcda18"
|
||||
integrity sha512-JsQJHtzLYKunMz7acYOX6x5IJ/42CsjjHFfLCmis1Hn/qFoD/y0kJFUIAg8HoDigQpKUcWj55d8rxZQBnvz1Pw==
|
||||
|
||||
"@types/getos@^3.0.0":
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/getos/-/getos-3.0.0.tgz#582c758e99e9d634f31f471faf7ce59cf1c39a71"
|
||||
|
@ -5814,6 +5809,10 @@
|
|||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"@types/kbn__docs-utils@link:bazel-bin/packages/kbn-docs-utils/npm_module_types":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
||||
"@types/kbn__i18n-react@link:bazel-bin/packages/kbn-i18n-react/npm_module_types":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue