mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
chore(NA): first attempt to complete removal of src folder on a small group of pkgs
This commit is contained in:
parent
fda799b582
commit
b6f34b7530
24 changed files with 58 additions and 33 deletions
|
@ -7,10 +7,20 @@ PKG_REQUIRE_NAME = "@kbn/analytics-shippers-elastic-v3-browser"
|
|||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
"src/**/*.ts",
|
||||
"**/*.ts",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.config.js",
|
||||
"**/*.mock.*",
|
||||
"**/*.test.*",
|
||||
"**/*.stories.*",
|
||||
"**/__snapshots__",
|
||||
"**/integration_tests",
|
||||
"**/mocks",
|
||||
"**/scripts",
|
||||
"**/storybook",
|
||||
"**/test_fixtures",
|
||||
"**/test_helpers",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -63,7 +73,6 @@ jsts_transpiler(
|
|||
name = "target_web",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
root_input_dir = "src",
|
||||
web = True,
|
||||
)
|
||||
|
||||
|
@ -71,7 +80,6 @@ jsts_transpiler(
|
|||
name = "target_node",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
root_input_dir = "src",
|
||||
)
|
||||
|
||||
ts_config(
|
||||
|
@ -92,7 +100,7 @@ ts_project(
|
|||
declaration_map = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
root_dir = ".",
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
*/
|
||||
|
||||
export type { ElasticV3ShipperOptions } from '@kbn/analytics-shippers-elastic-v3-common';
|
||||
export { ElasticV3BrowserShipper } from './browser_shipper';
|
||||
export { ElasticV3BrowserShipper } from './src/browser_shipper';
|
|
@ -5,7 +5,7 @@
|
|||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "target_types",
|
||||
"rootDir": "src",
|
||||
"rootDir": ".",
|
||||
"stripInternal": false,
|
||||
"types": [
|
||||
"jest",
|
||||
|
@ -13,6 +13,6 @@
|
|||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
"**/*.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -7,10 +7,20 @@ PKG_REQUIRE_NAME = "@kbn/analytics-shippers-elastic-v3-common"
|
|||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
"src/**/*.ts",
|
||||
"**/*.ts",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.config.js",
|
||||
"**/*.mock.*",
|
||||
"**/*.test.*",
|
||||
"**/*.stories.*",
|
||||
"**/__snapshots__",
|
||||
"**/integration_tests",
|
||||
"**/mocks",
|
||||
"**/scripts",
|
||||
"**/storybook",
|
||||
"**/test_fixtures",
|
||||
"**/test_helpers",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -59,14 +69,12 @@ jsts_transpiler(
|
|||
name = "target_node",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
root_input_dir = "src",
|
||||
)
|
||||
|
||||
jsts_transpiler(
|
||||
name = "target_web",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
root_input_dir = "src",
|
||||
web = True,
|
||||
)
|
||||
|
||||
|
@ -88,7 +96,7 @@ ts_project(
|
|||
declaration_map = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
root_dir = ".",
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
|
|
15
packages/analytics/shippers/elastic_v3/common/index.ts
Normal file
15
packages/analytics/shippers/elastic_v3/common/index.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { buildHeaders } from './impl/build_headers';
|
||||
export { buildUrl } from './impl/build_url';
|
||||
export type { BuildUrlOptions } from './impl/build_url';
|
||||
export { ErrorWithCode } from './impl/error_with_code';
|
||||
export { eventsToNDJSON } from './impl/events_to_ndjson';
|
||||
export { createTelemetryCounterHelper } from './impl/report_telemetry_counters';
|
||||
export type { ElasticV3ShipperOptions } from './impl/types';
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export { buildHeaders } from './build_headers';
|
||||
export { buildUrl } from './build_url';
|
||||
export type { BuildUrlOptions } from './build_url';
|
||||
export { ErrorWithCode } from './error_with_code';
|
||||
export { eventsToNDJSON } from './events_to_ndjson';
|
||||
export { createTelemetryCounterHelper } from './report_telemetry_counters';
|
||||
export type { ElasticV3ShipperOptions } from './types';
|
|
@ -5,7 +5,7 @@
|
|||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "target_types",
|
||||
"rootDir": "src",
|
||||
"rootDir": ".",
|
||||
"stripInternal": false,
|
||||
"types": [
|
||||
"jest",
|
||||
|
@ -13,6 +13,6 @@
|
|||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
"**/*.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -7,10 +7,20 @@ PKG_REQUIRE_NAME = "@kbn/analytics-shippers-elastic-v3-server"
|
|||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
"src/**/*.ts",
|
||||
"**/*.ts",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.config.js",
|
||||
"**/*.mock.*",
|
||||
"**/*.test.*",
|
||||
"**/*.stories.*",
|
||||
"**/__snapshots__",
|
||||
"**/integration_tests",
|
||||
"**/mocks",
|
||||
"**/scripts",
|
||||
"**/storybook",
|
||||
"**/test_fixtures",
|
||||
"**/test_helpers",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -65,7 +75,6 @@ jsts_transpiler(
|
|||
name = "target_node",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
root_input_dir = "src",
|
||||
)
|
||||
|
||||
ts_config(
|
||||
|
@ -86,7 +95,7 @@ ts_project(
|
|||
declaration_map = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
root_dir = ".",
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "target_types",
|
||||
"rootDir": "src",
|
||||
"rootDir": ".",
|
||||
"stripInternal": false,
|
||||
"types": [
|
||||
"jest",
|
||||
|
@ -13,6 +13,6 @@
|
|||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
"**/*.ts"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue