Skip to content

Commit

Permalink
[Asset Management] Migrate Osquery plugin to TS project references (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski authored Feb 10, 2021
1 parent b09b01f commit 9d8296e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
{ "path": "./x-pack/plugins/maps/tsconfig.json" },
{ "path": "./x-pack/plugins/ml/tsconfig.json" },
{ "path": "./x-pack/plugins/observability/tsconfig.json" },
{ "path": "./x-pack/plugins/osquery/tsconfig.json" },
{ "path": "./x-pack/plugins/painless_lab/tsconfig.json" },
{ "path": "./x-pack/plugins/reporting/tsconfig.json" },
{ "path": "./x-pack/plugins/saved_objects_tagging/tsconfig.json" },
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/osquery/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"requiredBundles": [
"esUiShared",
"kibanaUtils",
"kibanaReact",
"kibanaUtils"
"kibanaReact"
],
"requiredPlugins": [
"data",
Expand Down
34 changes: 34 additions & 0 deletions x-pack/plugins/osquery/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
// add all the folders contains files to be compiled
"common/**/*",
"public/**/*",
"server/**/*"
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// add references to other TypeScript projects the plugin depends on

// requiredPlugins from ./kibana.json
{ "path": "../../../src/plugins/data/tsconfig.json" },
{ "path": "../../../src/plugins/navigation/tsconfig.json" },
{ "path": "../data_enhanced/tsconfig.json" },
{ "path": "../fleet/tsconfig.json" },

// optionalPlugins from ./kibana.json
{ "path": "../../../src/plugins/home/tsconfig.json" },

// requiredBundles from ./kibana.json
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
]
}
1 change: 1 addition & 0 deletions x-pack/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
{ "path": "../plugins/licensing/tsconfig.json" },
{ "path": "../plugins/ml/tsconfig.json" },
{ "path": "../plugins/observability/tsconfig.json" },
{ "path": "../plugins/osquery/tsconfig.json" },
{ "path": "../plugins/painless_lab/tsconfig.json" },
{ "path": "../plugins/runtime_fields/tsconfig.json" },
{ "path": "../plugins/saved_objects_tagging/tsconfig.json" },
Expand Down
2 changes: 2 additions & 0 deletions x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"plugins/maps_legacy_licensing/**/*",
"plugins/ml/**/*",
"plugins/observability/**/*",
"plugins/osquery/**/*",
"plugins/reporting/**/*",
"plugins/searchprofiler/**/*",
"plugins/security_solution/cypress/**/*",
Expand Down Expand Up @@ -135,6 +136,7 @@
{ "path": "./plugins/maps/tsconfig.json" },
{ "path": "./plugins/ml/tsconfig.json" },
{ "path": "./plugins/observability/tsconfig.json" },
{ "path": "./plugins/osquery/tsconfig.json" },
{ "path": "./plugins/painless_lab/tsconfig.json" },
{ "path": "./plugins/saved_objects_tagging/tsconfig.json" },
{ "path": "./plugins/searchprofiler/tsconfig.json" },
Expand Down

0 comments on commit 9d8296e

Please sign in to comment.