mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[bazel] avoid a little boilerplate in packages (#126309)
* [bazel] avoid a little boilerplate for @types packages * [bazel/ts] stop building sourcemaps since they're ignored
This commit is contained in:
parent
6f2e49d82b
commit
614139b8e5
115 changed files with 63 additions and 402 deletions
|
@ -4,7 +4,6 @@ load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types",
|
|||
|
||||
PKG_BASE_NAME = "kbn-cli-dev-mode"
|
||||
PKG_REQUIRE_NAME = "@kbn/cli-dev-mode"
|
||||
TYPES_PKG_REQUIRE_NAME = "@types/kbn__cli-dev-mode"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
|
@ -93,11 +92,9 @@ ts_project(
|
|||
srcs = SRCS,
|
||||
deps = TYPES_DEPS,
|
||||
declaration = True,
|
||||
declaration_map = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
source_map = True,
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
|
@ -128,7 +125,7 @@ pkg_npm_types(
|
|||
name = "npm_module_types",
|
||||
srcs = SRCS,
|
||||
deps = [":tsc_types"],
|
||||
package_name = TYPES_PKG_REQUIRE_NAME,
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
tsconfig = ":tsconfig",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
|
|
@ -2,12 +2,9 @@
|
|||
"extends": "../../tsconfig.bazel.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./target_types",
|
||||
"rootDir": "./src",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "../../../../packages/kbn-cli-dev-mode/src",
|
||||
"types": [
|
||||
"jest",
|
||||
"node"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue