Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS project refs: Converts rollup, remoteClusters, crossClusterReplication, indexLifecycleManagement to a TS project refs #90713

31 changes: 31 additions & 0 deletions x-pack/plugins/cross_cluster_replication/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../remote_clusters/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
// optional plugins
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },
]
}
32 changes: 32 additions & 0 deletions x-pack/plugins/index_lifecycle_management/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"__jest__/**/*",
"common/**/*",
"public/**/*",
"server/**/*",
"../../typings/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../licensing/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
{ "path": "../../../src/plugins/share/tsconfig.json" },
// optional plugins
{ "path": "../cloud/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../../../src/plugins/home/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ import { register } from './add_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ import { register } from './delete_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,26 @@ import { register } from './get_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ import { register } from './update_route';
import { API_BASE_PATH } from '../../../common/constants';
import { LicenseStatus } from '../../types';

import { xpackMocks } from '../../../../../mocks';
import { licensingMock } from '../../../../../plugins/licensing/server/mocks';

import {
elasticsearchServiceMock,
httpServerMock,
httpServiceMock,
coreMock,
} from '../../../../../../src/core/server/mocks';

// Re-implement the mock that was imported directly from `x-pack/mocks`
function createCoreRequestHandlerContextMock() {
return {
core: coreMock.createRequestHandlerContext(),
licensing: licensingMock.createRequestHandlerContext(),
};
}

const xpackMocks = {
createRequestHandlerContext: createCoreRequestHandlerContextMock,
};
interface TestOptions {
licenseCheckResult?: LicenseStatus;
apiResponses?: Array<() => Promise<unknown>>;
Expand Down
30 changes: 30 additions & 0 deletions x-pack/plugins/remote_clusters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"fixtures/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../licensing/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
// optional plugins
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../cloud/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
]
}
35 changes: 35 additions & 0 deletions x-pack/plugins/rollup/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,
"declarationMap": true
},
"include": [
"common/**/*",
"fixtures/**/*",
"public/**/*",
"server/**/*",
],
"references": [
{ "path": "../../../src/core/tsconfig.json" },
// required plugins
{ "path": "../../../src/plugins/index_pattern_management/tsconfig.json" },
{ "path": "../../../src/plugins/management/tsconfig.json" },
{ "path": "../licensing/tsconfig.json" },
{ "path": "../features/tsconfig.json" },
// optional plugins
{ "path": "../../../src/plugins/home/tsconfig.json" },
{ "path": "../index_management/tsconfig.json" },
{ "path": "../../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../../../src/plugins/vis_type_timeseries/tsconfig.json" },
// required bundles
{ "path": "../../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../../../src/plugins/data/tsconfig.json" },

]
}
6 changes: 5 additions & 1 deletion x-pack/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
{ "path": "../plugins/triggers_actions_ui/tsconfig.json" },
{ "path": "../plugins/ui_actions_enhanced/tsconfig.json" },
{ "path": "../plugins/upgrade_assistant/tsconfig.json" },
{ "path": "../plugins/watcher/tsconfig.json" }
{ "path": "../plugins/watcher/tsconfig.json" },
{ "path": "../plugins/rollup/tsconfig.json" },
{ "path": "../plugins/remote_clusters/tsconfig.json" },
{ "path": "../plugins/cross_cluster_replication/tsconfig.json" },
{ "path": "../plugins/index_lifecycle_management/tsconfig.json"}
]
}
10 changes: 9 additions & 1 deletion x-pack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"plugins/index_management/**/*",
"plugins/grokdebugger/**/*",
"plugins/upgrade_assistant/**/*",
"plugins/rollup/**/*",
"plugins/remote_clusters/**/*",
"plugins/cross_cluster_replication/**/*",
"plugins/index_lifecycle_management/**/*",
"test/**/*"
],
"compilerOptions": {
Expand Down Expand Up @@ -145,6 +149,10 @@
{ "path": "./plugins/upgrade_assistant/tsconfig.json" },
{ "path": "./plugins/runtime_fields/tsconfig.json" },
{ "path": "./plugins/index_management/tsconfig.json" },
{ "path": "./plugins/watcher/tsconfig.json" }
{ "path": "./plugins/watcher/tsconfig.json" },
{ "path": "./plugins/rollup/tsconfig.json" },
{ "path": "./plugins/remote_clusters/tsconfig.json" },
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"}
]
}
6 changes: 5 additions & 1 deletion x-pack/tsconfig.refs.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
{ "path": "./plugins/upgrade_assistant/tsconfig.json" },
{ "path": "./plugins/runtime_fields/tsconfig.json" },
{ "path": "./plugins/index_management/tsconfig.json" },
{ "path": "./plugins/watcher/tsconfig.json" }
{ "path": "./plugins/watcher/tsconfig.json" },
{ "path": "./plugins/rollup/tsconfig.json"},
{ "path": "./plugins/remote_clusters/tsconfig.json"},
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"}
]
}