Skip to content

Commit f480002

Browse files
authored
TS project references for apmOss plugin (#87676) (#87722)
References #80508. References #81003.
1 parent dd71d8f commit f480002

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

src/plugins/apm_oss/tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": "../../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"outDir": "./target/types",
6+
"emitDeclarationOnly": true,
7+
"declaration": true,
8+
"declarationMap": true
9+
},
10+
"include": [
11+
"common/**/*",
12+
"public/**/*",
13+
"server/**/*",
14+
// have to declare *.json explicitly due to https://github.com/microsoft/TypeScript/issues/25636
15+
"server/tutorial/index_pattern.json"
16+
],
17+
"references": [{ "path": "../../core/tsconfig.json" }, { "path": "../home/tsconfig.json" }]
18+
}

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"exclude": [
88
"src/**/__fixtures__/**/*",
99
"src/core/**/*",
10+
"src/plugins/apm_oss/**/*",
1011
"src/plugins/bfetch/**/*",
1112
"src/plugins/data/**/*",
1213
"src/plugins/dev_tools/**/*",
@@ -28,7 +29,7 @@
2829
"src/plugins/telemetry_collection_manager/**/*",
2930
"src/plugins/ui_actions/**/*",
3031
"src/plugins/url_forwarding/**/*",
31-
"src/plugins/usage_collection/**/*",
32+
"src/plugins/usage_collection/**/*"
3233
// In the build we actually exclude **/public/**/* from this config so that
3334
// we can run the TSC on both this and the .browser version of this config
3435
// file, but if we did it during development IDEs would not be able to find
@@ -37,6 +38,7 @@
3738
],
3839
"references": [
3940
{ "path": "./src/core/tsconfig.json" },
41+
{ "path": "./src/plugins/apm_oss/tsconfig.json" },
4042
{ "path": "./src/plugins/bfetch/tsconfig.json" },
4143
{ "path": "./src/plugins/data/tsconfig.json" },
4244
{ "path": "./src/plugins/dev_tools/tsconfig.json" },
@@ -58,6 +60,6 @@
5860
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
5961
{ "path": "./src/plugins/ui_actions/tsconfig.json" },
6062
{ "path": "./src/plugins/url_forwarding/tsconfig.json" },
61-
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
63+
{ "path": "./src/plugins/usage_collection/tsconfig.json" }
6264
]
6365
}

tsconfig.refs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"include": [],
33
"references": [
44
{ "path": "./src/core/tsconfig.json" },
5+
{ "path": "./src/plugins/apm_oss/tsconfig.json" },
56
{ "path": "./src/plugins/bfetch/tsconfig.json" },
67
{ "path": "./src/plugins/data/tsconfig.json" },
78
{ "path": "./src/plugins/dev_tools/tsconfig.json" },
@@ -23,6 +24,6 @@
2324
{ "path": "./src/plugins/telemetry_collection_manager/tsconfig.json" },
2425
{ "path": "./src/plugins/ui_actions/tsconfig.json" },
2526
{ "path": "./src/plugins/url_forwarding/tsconfig.json" },
26-
{ "path": "./src/plugins/usage_collection/tsconfig.json" },
27+
{ "path": "./src/plugins/usage_collection/tsconfig.json" }
2728
]
2829
}

0 commit comments

Comments
 (0)