mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
tsconfig file for lens (#89135)
This commit is contained in:
parent
cb9afddb91
commit
a4c884b92b
6 changed files with 51 additions and 3 deletions
|
@ -12,7 +12,6 @@
|
|||
"urlForwarding",
|
||||
"visualizations",
|
||||
"dashboard",
|
||||
"charts",
|
||||
"uiActions",
|
||||
"embeddable",
|
||||
"share"
|
||||
|
|
|
@ -5,7 +5,11 @@
|
|||
*/
|
||||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { FieldFormat, KBN_FIELD_TYPES } from '../../../../../src/plugins/data/public';
|
||||
import {
|
||||
FieldFormat,
|
||||
FieldFormatInstanceType,
|
||||
KBN_FIELD_TYPES,
|
||||
} from '../../../../../src/plugins/data/public';
|
||||
import { FormatFactory } from '../types';
|
||||
import { TimeScaleUnit } from './time_scale';
|
||||
|
||||
|
@ -23,7 +27,7 @@ export const unitSuffixesLong: Record<TimeScaleUnit, string> = {
|
|||
d: i18n.translate('xpack.lens.fieldFormats.longSuffix.d', { defaultMessage: 'per day' }),
|
||||
};
|
||||
|
||||
export function getSuffixFormatter(formatFactory: FormatFactory) {
|
||||
export function getSuffixFormatter(formatFactory: FormatFactory): FieldFormatInstanceType {
|
||||
return class SuffixFormatter extends FieldFormat {
|
||||
static id = 'suffix';
|
||||
static title = i18n.translate('xpack.lens.fieldFormats.suffix.title', {
|
||||
|
|
41
x-pack/plugins/lens/tsconfig.json
Normal file
41
x-pack/plugins/lens/tsconfig.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"outDir": "./target/types",
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true
|
||||
},
|
||||
"include": [
|
||||
"*.ts",
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"../../typings/**/*"
|
||||
],
|
||||
"references": [
|
||||
{ "path": "../../../src/core/tsconfig.json" },
|
||||
{ "path": "../task_manager/tsconfig.json" },
|
||||
{ "path": "../global_search/tsconfig.json"},
|
||||
{ "path": "../saved_objects_tagging/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/data/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/charts/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/expressions/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/navigation/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/url_forwarding/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/visualizations/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/dashboard/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/ui_actions/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/embeddable/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/share/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/saved_objects/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
|
||||
{ "path": "../../../src/plugins/embeddable/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/lens_oss/tsconfig.json"},
|
||||
{ "path": "../../../src/plugins/presentation_util/tsconfig.json"},
|
||||
]
|
||||
}
|
|
@ -46,6 +46,7 @@
|
|||
{ "path": "../plugins/embeddable_enhanced/tsconfig.json" },
|
||||
{ "path": "../plugins/event_log/tsconfig.json" },
|
||||
{ "path": "../plugins/licensing/tsconfig.json" },
|
||||
{ "path": "../plugins/lens/tsconfig.json" },
|
||||
{ "path": "../plugins/task_manager/tsconfig.json" },
|
||||
{ "path": "../plugins/telemetry_collection_xpack/tsconfig.json" },
|
||||
{ "path": "../plugins/triggers_actions_ui/tsconfig.json" },
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"plugins/embeddable_enhanced/**/*",
|
||||
"plugins/event_log/**/*",
|
||||
"plugins/licensing/**/*",
|
||||
"plugins/lens/**/*",
|
||||
"plugins/searchprofiler/**/*",
|
||||
"plugins/security_solution/cypress/**/*",
|
||||
"plugins/task_manager/**/*",
|
||||
|
@ -84,6 +85,7 @@
|
|||
{ "path": "./plugins/embeddable_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/event_log/tsconfig.json" },
|
||||
{ "path": "./plugins/licensing/tsconfig.json" },
|
||||
{ "path": "./plugins/lens/tsconfig.json" },
|
||||
{ "path": "./plugins/searchprofiler/tsconfig.json" },
|
||||
{ "path": "./plugins/task_manager/tsconfig.json" },
|
||||
{ "path": "./plugins/telemetry_collection_xpack/tsconfig.json" },
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
{ "path": "./plugins/alerts/tsconfig.json"},
|
||||
{ "path": "./plugins/dashboard_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/licensing/tsconfig.json" },
|
||||
{ "path": "./plugins/lens/tsconfig.json" },
|
||||
{ "path": "./plugins/console_extensions/tsconfig.json" },
|
||||
{ "path": "./plugins/discover_enhanced/tsconfig.json" },
|
||||
{ "path": "./plugins/data_enhanced/tsconfig.json" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue