Skip to content

Commit

Permalink
TypeScript project references for esUiShared plugin
Browse files Browse the repository at this point in the history
References elastic#80508. References elastic#81003.
  • Loading branch information
smith committed Jan 13, 2021
1 parent eb2018b commit 890a9ac
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
5 changes: 3 additions & 2 deletions examples/dashboard_embeddable_examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
}
18 changes: 18 additions & 0 deletions src/plugins/es_ui_shared/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": [
"__packages_do_not_import__/**/*",
"common/**/*",
"public/**/*",
"server/**/*",
"static/**/*"
],
"references": [{ "path": "../../core/tsconfig.json" }, { "path": "../data/tsconfig.json" }]
}
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*",
Expand Down Expand Up @@ -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
Expand All @@ -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" },
Expand Down Expand Up @@ -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" }
]
}
3 changes: 2 additions & 1 deletion tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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" }
]
}

0 comments on commit 890a9ac

Please sign in to comment.