From 890a9ac366ca5ba82e1fe1d67616de36cc44e68c Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Wed, 13 Jan 2021 12:19:26 -0600 Subject: [PATCH] TypeScript project references for esUiShared plugin References #80508. References #81003. --- .../tsconfig.json | 5 +++-- src/plugins/es_ui_shared/tsconfig.json | 18 ++++++++++++++++++ tsconfig.json | 6 ++++-- tsconfig.refs.json | 3 ++- 4 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 src/plugins/es_ui_shared/tsconfig.json diff --git a/examples/dashboard_embeddable_examples/tsconfig.json b/examples/dashboard_embeddable_examples/tsconfig.json index 86b35c5e4943fd..99412a3f3943aa 100644 --- a/examples/dashboard_embeddable_examples/tsconfig.json +++ b/examples/dashboard_embeddable_examples/tsconfig.json @@ -9,10 +9,11 @@ "public/**/*.ts", "public/**/*.tsx", "server/**/*.ts", - "../../typings/**/*", + "../../typings/**/*" ], "exclude": [], "references": [ - { "path": "../../src/core/tsconfig.json" } + { "path": "../../src/core/tsconfig.json" }, + { "path": "../../src/plugins/es_ui_shared/tsconfig.json" } ] } diff --git a/src/plugins/es_ui_shared/tsconfig.json b/src/plugins/es_ui_shared/tsconfig.json new file mode 100644 index 00000000000000..e6263b1087d410 --- /dev/null +++ b/src/plugins/es_ui_shared/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "outDir": "./target/types", + "emitDeclarationOnly": true, + "declaration": true, + "declarationMap": true + }, + "include": [ + "__packages_do_not_import__/**/*", + "common/**/*", + "public/**/*", + "server/**/*", + "static/**/*" + ], + "references": [{ "path": "../../core/tsconfig.json" }, { "path": "../data/tsconfig.json" }] +} diff --git a/tsconfig.json b/tsconfig.json index d0596f1cdf3d40..cfbc2cca0f6589 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "src/plugins/data/**/*", "src/plugins/dev_tools/**/*", "src/plugins/embeddable/**/*", + "src/plugins/es_ui_shared/**/*", "src/plugins/expressions/**/*", "src/plugins/home/**/*", "src/plugins/inspector/**/*", @@ -50,7 +51,7 @@ "src/plugins/vis_type_vislib/**/*", "src/plugins/vis_type_xy/**/*", "src/plugins/visualizations/**/*", - "src/plugins/visualize/**/*", + "src/plugins/visualize/**/*" // 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 @@ -69,6 +70,7 @@ { "path": "./src/plugins/data/tsconfig.json" }, { "path": "./src/plugins/dev_tools/tsconfig.json" }, { "path": "./src/plugins/embeddable/tsconfig.json" }, + { "path": "./src/plugins/es_ui_shared/tsconfig.json" }, { "path": "./src/plugins/expressions/tsconfig.json" }, { "path": "./src/plugins/home/tsconfig.json" }, { "path": "./src/plugins/inspector/tsconfig.json" }, @@ -101,6 +103,6 @@ { "path": "./src/plugins/vis_type_vislib/tsconfig.json" }, { "path": "./src/plugins/vis_type_xy/tsconfig.json" }, { "path": "./src/plugins/visualizations/tsconfig.json" }, - { "path": "./src/plugins/visualize/tsconfig.json" }, + { "path": "./src/plugins/visualize/tsconfig.json" } ] } diff --git a/tsconfig.refs.json b/tsconfig.refs.json index 5520960444bd9a..7f9f14cae8ea1e 100644 --- a/tsconfig.refs.json +++ b/tsconfig.refs.json @@ -11,6 +11,7 @@ { "path": "./src/plugins/dev_tools/tsconfig.json" }, { "path": "./src/plugins/discover/tsconfig.json" }, { "path": "./src/plugins/embeddable/tsconfig.json" }, + { "path": "./src/plugins/es_ui_shared/tsconfig.json" }, { "path": "./src/plugins/expressions/tsconfig.json" }, { "path": "./src/plugins/home/tsconfig.json" }, { "path": "./src/plugins/dashboard/tsconfig.json" }, @@ -46,6 +47,6 @@ { "path": "./src/plugins/vis_type_vislib/tsconfig.json" }, { "path": "./src/plugins/vis_type_xy/tsconfig.json" }, { "path": "./src/plugins/visualizations/tsconfig.json" }, - { "path": "./src/plugins/visualize/tsconfig.json" }, + { "path": "./src/plugins/visualize/tsconfig.json" } ] }