mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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
|
@ -5,7 +5,6 @@ load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types",
|
|||
|
||||
PKG_BASE_NAME = "kbn-ui-shared-deps-npm"
|
||||
PKG_REQUIRE_NAME = "@kbn/ui-shared-deps-npm"
|
||||
TYPES_PKG_REQUIRE_NAME = "@types/kbn__ui-shared-deps-npm"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
|
@ -121,11 +120,9 @@ ts_project(
|
|||
deps = TYPES_DEPS,
|
||||
allow_js = True,
|
||||
declaration = True,
|
||||
declaration_map = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
source_map = True,
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
|
@ -174,7 +171,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"],
|
||||
)
|
||||
|
|
|
@ -3,12 +3,9 @@
|
|||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "./target_types",
|
||||
"rootDir": "src",
|
||||
"sourceMap": true,
|
||||
"sourceRoot": "../../../../packages/kbn-ui-shared-deps-npm/src",
|
||||
"types": [
|
||||
"node",
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue