Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate logstash, monitoring, url_drilldowns, xpack_legacy to ts projects #91194

Merged
merged 11 commits into from
Feb 17, 2021
3 changes: 3 additions & 0 deletions src/dev/typescript/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const PROJECTS = [
new Project(resolve(REPO_ROOT, 'x-pack/tsconfig.json')),
new Project(resolve(REPO_ROOT, 'x-pack/test/tsconfig.json'), { name: 'x-pack/test' }),
new Project(resolve(REPO_ROOT, 'src/core/tsconfig.json')),
new Project(resolve(REPO_ROOT, 'x-pack/plugins/drilldowns/url_drilldown/tsconfig.json'), {
name: 'security_solution/cypress',
}),
new Project(resolve(REPO_ROOT, 'x-pack/plugins/security_solution/cypress/tsconfig.json'), {
name: 'security_solution/cypress',
}),
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
{ "path": "./x-pack/plugins/data_enhanced/tsconfig.json" },
{ "path": "./x-pack/plugins/dashboard_mode/tsconfig.json" },
{ "path": "./x-pack/plugins/discover_enhanced/tsconfig.json" },
{ "path": "./x-pack/plugins/drilldowns/url_drilldown/tsconfig.json" },
{ "path": "./x-pack/plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "./x-pack/plugins/encrypted_saved_objects/tsconfig.json" },
{ "path": "./x-pack/plugins/enterprise_search/tsconfig.json" },
Expand All @@ -84,9 +85,11 @@
{ "path": "./x-pack/plugins/lens/tsconfig.json" },
{ "path": "./x-pack/plugins/license_management/tsconfig.json" },
{ "path": "./x-pack/plugins/licensing/tsconfig.json" },
{ "path": "./x-pack/plugins/logstash/tsconfig.json" },
{ "path": "./x-pack/plugins/maps_legacy_licensing/tsconfig.json" },
{ "path": "./x-pack/plugins/maps/tsconfig.json" },
{ "path": "./x-pack/plugins/ml/tsconfig.json" },
{ "path": "./x-pack/plugins/monitoring/tsconfig.json" },
{ "path": "./x-pack/plugins/observability/tsconfig.json" },
{ "path": "./x-pack/plugins/osquery/tsconfig.json" },
{ "path": "./x-pack/plugins/painless_lab/tsconfig.json" },
Expand All @@ -111,6 +114,7 @@
{ "path": "./x-pack/plugins/remote_clusters/tsconfig.json" },
{ "path": "./x-pack/plugins/cross_cluster_replication/tsconfig.json" },
{ "path": "./x-pack/plugins/index_lifecycle_management/tsconfig.json" },
{ "path": "./x-pack/plugins/uptime/tsconfig.json" }
{ "path": "./x-pack/plugins/uptime/tsconfig.json" },
{ "path": "./x-pack/plugins/xpack_legacy/tsconfig.json" },
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
* Part of context scope extracted from an embeddable
* Expose on the scope as: `{{context.panel.id}}`, `{{context.panel.filters.[0]}}`
*/
interface EmbeddableUrlDrilldownContextScope extends EmbeddableInput {
export interface EmbeddableUrlDrilldownContextScope extends EmbeddableInput {
/**
* ID of the embeddable panel.
*/
Expand Down
20 changes: 20 additions & 0 deletions x-pack/plugins/drilldowns/url_drilldown/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": ["public/**/*"],
"references": [
{ "path": "../../../../src/core/tsconfig.json" },
{ "path": "../../ui_actions_enhanced/tsconfig.json" },
{ "path": "../../../../src/plugins/embeddable/tsconfig.json" },
{ "path": "../../../../src/plugins/expressions/tsconfig.json" },
{ "path": "../../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../../src/plugins/ui_actions/tsconfig.json" }
]
}
26 changes: 26 additions & 0 deletions x-pack/plugins/logstash/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json"},
{ "path": "../../../src/plugins/management/tsconfig.json"},

{ "path": "../features/tsconfig.json" },
{ "path": "../licensing/tsconfig.json"},
{ "path": "../monitoring/tsconfig.json"},
{ "path": "../security/tsconfig.json"},
]
}
36 changes: 36 additions & 0 deletions x-pack/plugins/monitoring/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*"
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_legacy/tsconfig.json" },
{ "path": "../../../src/plugins/navigation/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../alerts/tsconfig.json" },
{ "path": "../actions/tsconfig.json" },
{ "path": "../cloud/tsconfig.json" },
{ "path": "../encrypted_saved_objects/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
{ "path": "../infra/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../license_management/tsconfig.json" },
{ "path": "../observability/tsconfig.json" },
{ "path": "../telemetry_collection_xpack/tsconfig.json" },
{ "path": "../triggers_actions_ui/tsconfig.json" },
]
}
18 changes: 18 additions & 0 deletions x-pack/plugins/xpack_legacy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../monitoring/tsconfig.json" },
]
}
7 changes: 5 additions & 2 deletions x-pack/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"types": ["node", "flot"]
},
"include": ["**/*", "../typings/**/*", "../../packages/kbn-test/types/ftr_globals/**/*"],
"exclude": ["../typings/jest.d.ts"],
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/bfetch/tsconfig.json" },
Expand Down Expand Up @@ -53,6 +52,7 @@
{ "path": "../plugins/global_search_providers/tsconfig.json" },
{ "path": "../plugins/features/tsconfig.json" },
{ "path": "../plugins/data_enhanced/tsconfig.json" },
{ "path": "../plugins/drilldowns/url_drilldown/tsconfig.json" },
{ "path": "../plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "../plugins/encrypted_saved_objects/tsconfig.json" },
{ "path": "../plugins/enterprise_search/tsconfig.json" },
Expand All @@ -68,7 +68,9 @@
{ "path": "../plugins/lens/tsconfig.json" },
{ "path": "../plugins/license_management/tsconfig.json" },
{ "path": "../plugins/licensing/tsconfig.json" },
{ "path": "../plugins/logstash/tsconfig.json" },
{ "path": "../plugins/ml/tsconfig.json" },
{ "path": "../plugins/monitoring/tsconfig.json" },
{ "path": "../plugins/observability/tsconfig.json" },
{ "path": "../plugins/osquery/tsconfig.json" },
{ "path": "../plugins/painless_lab/tsconfig.json" },
Expand All @@ -89,6 +91,7 @@
{ "path": "../plugins/remote_clusters/tsconfig.json" },
{ "path": "../plugins/cross_cluster_replication/tsconfig.json" },
{ "path": "../plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "../plugins/uptime/tsconfig.json" }
{ "path": "../plugins/uptime/tsconfig.json" },
{ "path": "../plugins/xpack_legacy/tsconfig.json" }
]
}
12 changes: 6 additions & 6 deletions x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
"tasks/**/*",
"plugins/case/**/*",
"plugins/lists/**/*",
"plugins/logstash/**/*",
"plugins/monitoring/**/*",
"plugins/security_solution/**/*",
"plugins/xpack_legacy/**/*",
"plugins/drilldowns/url_drilldown/**/*"
"plugins/security_solution/**/*"
],
"exclude": [
"test/**/*",
Expand Down Expand Up @@ -70,6 +66,7 @@
{ "path": "./plugins/data_enhanced/tsconfig.json" },
{ "path": "./plugins/dashboard_mode/tsconfig.json" },
{ "path": "./plugins/discover_enhanced/tsconfig.json" },
{ "path": "./plugins/drilldowns/url_drilldown/tsconfig.json" },
{ "path": "./plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "./plugins/encrypted_saved_objects/tsconfig.json" },
{ "path": "./plugins/enterprise_search/tsconfig.json" },
Expand All @@ -87,9 +84,11 @@
{ "path": "./plugins/lens/tsconfig.json" },
{ "path": "./plugins/license_management/tsconfig.json" },
{ "path": "./plugins/licensing/tsconfig.json" },
{ "path": "./plugins/logstash/tsconfig.json" },
{ "path": "./plugins/maps_legacy_licensing/tsconfig.json" },
{ "path": "./plugins/maps/tsconfig.json" },
{ "path": "./plugins/ml/tsconfig.json" },
{ "path": "./plugins/monitoring/tsconfig.json" },
{ "path": "./plugins/observability/tsconfig.json" },
{ "path": "./plugins/osquery/tsconfig.json" },
{ "path": "./plugins/painless_lab/tsconfig.json" },
Expand All @@ -113,6 +112,7 @@
{ "path": "./plugins/remote_clusters/tsconfig.json" },
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"},
{ "path": "./plugins/uptime/tsconfig.json" }
{ "path": "./plugins/uptime/tsconfig.json" },
{ "path": "./plugins/xpack_legacy/tsconfig.json" }
]
}