mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
refact(NA): remove extra pkg_npm target and add specific target folders for @kbn/analytics on Bazel (#100569)
* refact(NA): remove extra pkg_npm target and add specific target folders on @kbn/analytics * chore(NA): update import on target_types
This commit is contained in:
parent
31778b31c2
commit
fea499c8ab
5 changed files with 11 additions and 33 deletions
|
@ -56,10 +56,10 @@ ts_project(
|
|||
srcs = SRCS,
|
||||
deps = DEPS,
|
||||
declaration = True,
|
||||
declaration_dir = "types",
|
||||
declaration_dir = "target_types",
|
||||
declaration_map = True,
|
||||
incremental = True,
|
||||
out_dir = "node",
|
||||
out_dir = "target_node",
|
||||
source_map = True,
|
||||
root_dir = "src",
|
||||
tsconfig = ":tsconfig",
|
||||
|
@ -72,38 +72,16 @@ ts_project(
|
|||
deps = DEPS,
|
||||
declaration = False,
|
||||
incremental = True,
|
||||
out_dir = "web",
|
||||
out_dir = "target_web",
|
||||
source_map = True,
|
||||
root_dir = "src",
|
||||
tsconfig = ":tsconfig_browser",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "tsc_types",
|
||||
srcs = [":tsc"],
|
||||
output_group = "types",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "target_files",
|
||||
srcs = [
|
||||
":tsc",
|
||||
":tsc_browser",
|
||||
":tsc_types",
|
||||
],
|
||||
)
|
||||
|
||||
pkg_npm(
|
||||
name = "target",
|
||||
deps = [
|
||||
":target_files",
|
||||
],
|
||||
)
|
||||
|
||||
js_library(
|
||||
name = PKG_BASE_NAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES,
|
||||
deps = DEPS + [":target"],
|
||||
deps = DEPS + [":tsc", ":tsc_browser"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": "Kibana Analytics tool",
|
||||
"main": "target/node/index.js",
|
||||
"types": "target/types/index.d.ts",
|
||||
"browser": "target/web/index.js",
|
||||
"main": "target_node/index.js",
|
||||
"types": "target_types/index.d.ts",
|
||||
"browser": "target_web/index.js",
|
||||
"author": "Ahmad Bamieh <ahmadbamieh@gmail.com>",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0"
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
"extends": "../../tsconfig.browser.json",
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"outDir": "./target/web",
|
||||
"outDir": "./target_web",
|
||||
"stripInternal": true,
|
||||
"declaration": false,
|
||||
"isolatedModules": true,
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"declarationDir": "./target/types",
|
||||
"outDir": "./target/node",
|
||||
"declarationDir": "./target_types",
|
||||
"outDir": "./target_node",
|
||||
"stripInternal": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
import { ReportManager, METRIC_TYPE, UiCounterMetricType } from '@kbn/analytics';
|
||||
import { UserAgentMetric } from '@kbn/analytics/target/types/metrics/user_agent';
|
||||
import { UserAgentMetric } from '@kbn/analytics/target_types/metrics/user_agent';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue