Skip to content

Commit c058d9b

Browse files
[Asset Management] Migrate Osquery plugin to TS project references (#90916)
1 parent d1653bc commit c058d9b

File tree

5 files changed

+39
-2
lines changed

5 files changed

+39
-2
lines changed

tsconfig.refs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
{ "path": "./x-pack/plugins/maps/tsconfig.json" },
8888
{ "path": "./x-pack/plugins/ml/tsconfig.json" },
8989
{ "path": "./x-pack/plugins/observability/tsconfig.json" },
90+
{ "path": "./x-pack/plugins/osquery/tsconfig.json" },
9091
{ "path": "./x-pack/plugins/painless_lab/tsconfig.json" },
9192
{ "path": "./x-pack/plugins/reporting/tsconfig.json" },
9293
{ "path": "./x-pack/plugins/saved_objects_tagging/tsconfig.json" },

x-pack/plugins/osquery/kibana.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"requiredBundles": [
1515
"esUiShared",
1616
"kibanaUtils",
17-
"kibanaReact",
18-
"kibanaUtils"
17+
"kibanaReact"
1918
],
2019
"requiredPlugins": [
2120
"data",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"outDir": "./target/types",
6+
"emitDeclarationOnly": true,
7+
"declaration": true,
8+
"declarationMap": true
9+
},
10+
"include": [
11+
// add all the folders contains files to be compiled
12+
"common/**/*",
13+
"public/**/*",
14+
"server/**/*"
15+
],
16+
"references": [
17+
{ "path": "../../../src/core/tsconfig.json" },
18+
// add references to other TypeScript projects the plugin depends on
19+
20+
// requiredPlugins from ./kibana.json
21+
{ "path": "../../../src/plugins/data/tsconfig.json" },
22+
{ "path": "../../../src/plugins/navigation/tsconfig.json" },
23+
{ "path": "../data_enhanced/tsconfig.json" },
24+
{ "path": "../fleet/tsconfig.json" },
25+
26+
// optionalPlugins from ./kibana.json
27+
{ "path": "../../../src/plugins/home/tsconfig.json" },
28+
29+
// requiredBundles from ./kibana.json
30+
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
31+
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
32+
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
33+
]
34+
}

x-pack/test/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
{ "path": "../plugins/licensing/tsconfig.json" },
6969
{ "path": "../plugins/ml/tsconfig.json" },
7070
{ "path": "../plugins/observability/tsconfig.json" },
71+
{ "path": "../plugins/osquery/tsconfig.json" },
7172
{ "path": "../plugins/painless_lab/tsconfig.json" },
7273
{ "path": "../plugins/runtime_fields/tsconfig.json" },
7374
{ "path": "../plugins/saved_objects_tagging/tsconfig.json" },

x-pack/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"plugins/maps_legacy_licensing/**/*",
3131
"plugins/ml/**/*",
3232
"plugins/observability/**/*",
33+
"plugins/osquery/**/*",
3334
"plugins/reporting/**/*",
3435
"plugins/searchprofiler/**/*",
3536
"plugins/security_solution/cypress/**/*",
@@ -133,6 +134,7 @@
133134
{ "path": "./plugins/maps/tsconfig.json" },
134135
{ "path": "./plugins/ml/tsconfig.json" },
135136
{ "path": "./plugins/observability/tsconfig.json" },
137+
{ "path": "./plugins/osquery/tsconfig.json" },
136138
{ "path": "./plugins/painless_lab/tsconfig.json" },
137139
{ "path": "./plugins/saved_objects_tagging/tsconfig.json" },
138140
{ "path": "./plugins/searchprofiler/tsconfig.json" },

0 commit comments

Comments
 (0)