Skip to content

Commit

Permalink
Add TS config for kibana_legacy (#80992) (#81171)
Browse files Browse the repository at this point in the history
To support project references.

References #80508.
  • Loading branch information
smith authored Oct 21, 2020
1 parent d631576 commit a8dd5b8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
12 changes: 12 additions & 0 deletions src/plugins/kibana_legacy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": ["../../../typings/**/*", "public/**/*", "server/**/*", "config.ts"],
"references": [{ "path": "../../core/tsconfig.json" }]
}
18 changes: 7 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@
"compilerOptions": {
"tsBuildInfoFile": "./build/tsbuildinfo/kibana"
},
"include": [
"kibana.d.ts",
"src/**/*",
"typings/**/*",
"test_utils/**/*"
],
"include": ["kibana.d.ts", "src/**/*", "typings/**/*", "test_utils/**/*"],
"exclude": [
"src/**/__fixtures__/**/*",
"src/test_utils/**/*",
"src/core/**/*",
"src/plugins/kibana_utils/**/*",
"src/plugins/kibana_legacy/**/*",
"src/plugins/kibana_react/**/*",
"src/plugins/usage_collection/**/*",
"src/plugins/telemetry_collection_manager/**/*",
"src/plugins/telemetry/**/*",
"src/plugins/kibana_usage_collection/**/*",
"src/plugins/newsfeed/**/*"
"src/plugins/kibana_utils/**/*",
"src/plugins/newsfeed/**/*",
"src/plugins/telemetry/**/*",
"src/plugins/telemetry_collection_manager/**/*",
"src/plugins/usage_collection/**/*"
// 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 Down

0 comments on commit a8dd5b8

Please sign in to comment.