mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Usage collection plugins to ts project refs (#81090)
This commit is contained in:
parent
02c8c36a4e
commit
e7f3044b31
9 changed files with 86 additions and 4 deletions
23
src/plugins/telemetry/tsconfig.json
Normal file
23
src/plugins/telemetry/tsconfig.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/**/*",
|
||||
"server/**/**/*",
|
||||
"common/**/*",
|
||||
"../../../typings/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../../plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../../plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "../../plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "../../plugins/kibana_react/tsconfig.json" }
|
||||
]
|
||||
}
|
18
src/plugins/telemetry_collection_manager/tsconfig.json
Normal file
18
src/plugins/telemetry_collection_manager/tsconfig.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"server/**/*",
|
||||
"common/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../../plugins/usage_collection/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -30,7 +30,7 @@ import {
|
|||
} from '../../../core/public';
|
||||
import { reportApplicationUsage } from './services/application_usage';
|
||||
|
||||
interface PublicConfigType {
|
||||
export interface PublicConfigType {
|
||||
uiMetric: {
|
||||
enabled: boolean;
|
||||
debug: boolean;
|
||||
|
|
20
src/plugins/usage_collection/tsconfig.json
Normal file
20
src/plugins/usage_collection/tsconfig.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"common/*",
|
||||
"../../../typings/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../core/tsconfig.json" },
|
||||
{ "path": "../../plugins/kibana_utils/tsconfig.json" }
|
||||
]
|
||||
}
|
|
@ -20,6 +20,9 @@
|
|||
"references": [
|
||||
{ "path": "../src/core/tsconfig.json" },
|
||||
{ "path": "../src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "../src/plugins/kibana_react/tsconfig.json" }
|
||||
{ "path": "../src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "../src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "../src/plugins/telemetry/tsconfig.json" }
|
||||
]
|
||||
}
|
||||
|
|
|
@ -9,8 +9,11 @@
|
|||
"src/test_utils/**/*",
|
||||
"src/core/**/*",
|
||||
"src/plugins/kibana_legacy/**/*",
|
||||
"src/plugins/kibana_utils/**/*",
|
||||
"src/plugins/kibana_react/**/*",
|
||||
"src/plugins/kibana_utils/**/*"
|
||||
"src/plugins/usage_collection/**/*",
|
||||
"src/plugins/telemetry_collection_manager/**/*",
|
||||
"src/plugins/telemetry/**/*"
|
||||
// In the build we actually exclude **/public/**/* from this config so that
|
||||
// we can run the TSC on both this and the .browser version of this config
|
||||
// file, but if we did it during development IDEs would not be able to find
|
||||
|
@ -21,6 +24,9 @@
|
|||
{ "path": "./src/test_utils/tsconfig.json" },
|
||||
{ "path": "./src/core/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_react/tsconfig.json" }
|
||||
{ "path": "./src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry/tsconfig.json" }
|
||||
]
|
||||
}
|
||||
|
|
|
@ -5,5 +5,8 @@
|
|||
{ "path": "./src/core/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "./src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "./src/plugins/telemetry/tsconfig.json" },
|
||||
]
|
||||
}
|
||||
|
|
|
@ -22,5 +22,8 @@
|
|||
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "../plugins/licensing/tsconfig.json" },
|
||||
{ "path": "../plugins/global_search/tsconfig.json" },
|
||||
{ "path": "../../src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../../src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "../../src/plugins/telemetry/tsconfig.json" }
|
||||
]
|
||||
}
|
||||
|
|
|
@ -14,6 +14,9 @@
|
|||
"plugins/apm/scripts/**/*",
|
||||
"plugins/licensing/**/*",
|
||||
"plugins/global_search/**/*",
|
||||
"../src/plugins/usage_collection/**/*",
|
||||
"../src/plugins/telemetry_collection_manager/**/*",
|
||||
"../src/plugins/telemetry/**/*"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
|
@ -31,5 +34,8 @@
|
|||
{ "path": "../src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "./plugins/licensing/tsconfig.json" },
|
||||
{ "path": "./plugins/global_search/tsconfig.json" },
|
||||
{ "path": "../src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../src/plugins/telemetry_collection_manager/tsconfig.json" },
|
||||
{ "path": "../src/plugins/telemetry/tsconfig.json" }
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue