Add TS config for kibana_legacy (#80992)

* Add TS config for kibana_legacy

To support project references.

References #80508.
This commit is contained in:
Nathan L Smith 2020-10-20 09:12:04 -05:00 committed by GitHub
parent dd5e5279f1
commit 53770a12c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 8 deletions

View file

@ -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" }]
}

View file

@ -3,18 +3,14 @@
"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_react/**/*"
"src/plugins/kibana_legacy/**/*",
"src/plugins/kibana_react/**/*",
"src/plugins/kibana_utils/**/*"
// 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