Skip to content

Commit

Permalink
Migrates watcher to a TS project ref (elastic#89622)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
TinaHeiligers and kibanamachine committed Jan 29, 2021
1 parent 732f3cc commit 2dc42cd
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ import { getWatch } from '../../__fixtures__';

export const WATCH_ID = 'my-test-watch';

export const WATCH = { watch: getWatch({ id: WATCH_ID }) };
export const WATCH: any = { watch: getWatch({ id: WATCH_ID }) };
29 changes: 29 additions & 0 deletions x-pack/plugins/watcher/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"server/**/*",
"public/**/*",
"common/**/*",
"tests_client_integration/**/*",
"__fixtures__/*",
"../../typings/**/*"
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../../../src/plugins/charts/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
]
}
3 changes: 2 additions & 1 deletion x-pack/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
{ "path": "../plugins/cloud/tsconfig.json" },
{ "path": "../plugins/saved_objects_tagging/tsconfig.json" },
{ "path": "../plugins/global_search_bar/tsconfig.json" },
{ "path": "../plugins/license_management/tsconfig.json" }
{ "path": "../plugins/license_management/tsconfig.json" },
{ "path": "../plugins/watcher/tsconfig.json" }
]
}
2 changes: 2 additions & 0 deletions x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"plugins/saved_objects_tagging/**/*",
"plugins/global_search_bar/**/*",
"plugins/license_management/**/*",
"plugins/watcher/**/*",
"test/**/*"
],
"compilerOptions": {
Expand Down Expand Up @@ -109,5 +110,6 @@
{ "path": "./plugins/triggers_actions_ui/tsconfig.json"},
{ "path": "./plugins/stack_alerts/tsconfig.json"},
{ "path": "./plugins/license_management/tsconfig.json" },
{ "path": "./plugins/watcher/tsconfig.json" },
]
}
3 changes: 2 additions & 1 deletion x-pack/tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
{ "path": "./plugins/cloud/tsconfig.json" },
{ "path": "./plugins/saved_objects_tagging/tsconfig.json" },
{ "path": "./plugins/global_search_bar/tsconfig.json" },
{ "path": "./plugins/license_management/tsconfig.json" }
{ "path": "./plugins/license_management/tsconfig.json" },
{ "path": "./plugins/watcher/tsconfig.json" }
]
}

0 comments on commit 2dc42cd

Please sign in to comment.