Skip to content

Commit

Permalink
TS project references for translations plugin (#88022)
Browse files Browse the repository at this point in the history
Observability has this as a dependency, so adding TS project references in service of that.
  • Loading branch information
smith authored Jan 12, 2021
1 parent 1094274 commit d53f832
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions x-pack/plugins/translations/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": ["server/**/*", "translations/ja-JP.json", "translations/zh-CN.json"],
"references": [{ "path": "../../../src/core/tsconfig.json" }]
}
4 changes: 3 additions & 1 deletion x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"plugins/security_solution/cypress/**/*",
"plugins/task_manager/**/*",
"plugins/telemetry_collection_xpack/**/*",
"plugins/translations/**/*",
"plugins/ui_actions_enhanced/**/*",
"test/**/*"
],
Expand Down Expand Up @@ -60,6 +61,7 @@
{ "path": "./plugins/licensing/tsconfig.json" },
{ "path": "./plugins/task_manager/tsconfig.json" },
{ "path": "./plugins/telemetry_collection_xpack/tsconfig.json" },
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" },
{ "path": "./plugins/translations/tsconfig.json" },
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" }
]
}
3 changes: 2 additions & 1 deletion x-pack/tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{ "path": "./plugins/embeddable_enhanced/tsconfig.json" },
{ "path": "./plugins/task_manager/tsconfig.json" },
{ "path": "./plugins/telemetry_collection_xpack/tsconfig.json" },
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" },
{ "path": "./plugins/translations/tsconfig.json" },
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" }
]
}

0 comments on commit d53f832

Please sign in to comment.