chore(NA): splits types from code on @kbn/dev-utils (#120531) (#120676)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es-archiver/src/actions/rebuild_all.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Tiago Costa 2021-12-07 23:34:41 +00:00 committed by GitHub
parent 7da3a0b01a
commit 51f01483c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
84 changed files with 160 additions and 104 deletions

View file

@ -564,6 +564,7 @@
"@types/kbn__config": "link:bazel-bin/packages/kbn-config/npm_module_types",
"@types/kbn__config-schema": "link:bazel-bin/packages/kbn-config-schema/npm_module_types",
"@types/kbn__crypto": "link:bazel-bin/packages/kbn-crypto/npm_module_types",
"@types/kbn__dev-utils": "link:bazel-bin/packages/kbn-dev-utils/npm_module_types",
"@types/kbn__docs-utils": "link:bazel-bin/packages/kbn-docs-utils/npm_module_types",
"@types/kbn__i18n": "link:bazel-bin/packages/kbn-i18n/npm_module_types",
"@types/kbn__i18n-react": "link:bazel-bin/packages/kbn-i18n-react/npm_module_types",

View file

@ -85,6 +85,7 @@ filegroup(
"//packages/kbn-config:build_types",
"//packages/kbn-config-schema:build_types",
"//packages/kbn-crypto:build_types",
"//packages/kbn-dev-utils:build_types",
"//packages/kbn-docs-utils:build_types",
"//packages/kbn-i18n:build_types",
"//packages/kbn-i18n-react:build_types",

View file

@ -1,5 +1,5 @@
const semver = require('semver');
const { kibanaPackageJson: PKG } = require('@kbn/dev-utils');
const { kibanaPackageJson: PKG } = require('@kbn/utils');
module.exports = {
plugins: [

View file

@ -4,7 +4,7 @@
// as this package was moved from typescript-eslint-parser to @typescript-eslint/parser
const semver = require('semver');
const { kibanaPackageJson: PKG } = require('@kbn/dev-utils');
const { kibanaPackageJson: PKG } = require('@kbn/utils');
const eslintConfigPrettierTypescriptEslintRules = require('eslint-config-prettier/@typescript-eslint').rules;

View file

@ -50,7 +50,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-config:npm_module_types",
"//packages/kbn-config-schema:npm_module_types",
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-logging",
"//packages/kbn-optimizer",
"//packages/kbn-server-http-tools",

View file

@ -8,11 +8,9 @@
import Path from 'path';
import * as Rx from 'rxjs';
import {
REPO_ROOT,
createAbsolutePathSerializer,
createAnyInstanceSerializer,
} from '@kbn/dev-utils';
import { createAbsolutePathSerializer, createAnyInstanceSerializer } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { TestLog } from './log';
import { CliDevMode, SomeCliArgs } from './cli_dev_mode';

View file

@ -22,7 +22,8 @@ import {
takeUntil,
} from 'rxjs/operators';
import { CliArgs } from '@kbn/config';
import { REPO_ROOT, CiStatsReporter } from '@kbn/dev-utils';
import { CiStatsReporter } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Log, CliLog } from './log';
import { Optimizer } from './optimizer';

View file

@ -8,7 +8,8 @@
import Path from 'path';
import { REPO_ROOT, createAbsolutePathSerializer } from '@kbn/dev-utils';
import { createAbsolutePathSerializer } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { getServerWatchPaths } from './get_server_watch_paths';

View file

@ -9,7 +9,7 @@
import Path from 'path';
import Fs from 'fs';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
interface Options {
pluginPaths: string[];

View file

@ -34,7 +34,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"@npm//@types/flot",
"@npm//@types/jest",
"@npm//@types/node",

View file

@ -1,9 +1,10 @@
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
load("//src/dev/bazel:index.bzl", "jsts_transpiler")
load("@npm//@bazel/typescript:index.bzl", "ts_config")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
PKG_BASE_NAME = "kbn-dev-utils"
PKG_REQUIRE_NAME = "@kbn/dev-utils"
TYPES_PKG_REQUIRE_NAME = "@types/kbn__dev-utils"
SOURCE_FILES = glob(
[
@ -43,7 +44,6 @@ NPM_MODULE_EXTRA_FILES = [
]
RUNTIME_DEPS = [
"//packages/kbn-std",
"//packages/kbn-utils",
"@npm//@babel/core",
"@npm//axios",
@ -66,7 +66,6 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-std",
"//packages/kbn-utils",
"@npm//@babel/parser",
"@npm//@babel/types",
@ -124,7 +123,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
@ -143,3 +142,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)
pkg_npm_types(
name = "npm_module_types",
srcs = SRCS,
deps = [":tsc_types"],
package_name = TYPES_PKG_REQUIRE_NAME,
tsconfig = ":tsconfig",
visibility = ["//visibility:public"],
)
filegroup(
name = "build_types",
srcs = [
":npm_module_types",
],
visibility = ["//visibility:public"],
)

View file

@ -4,7 +4,6 @@
"private": true,
"license": "SSPL-1.0 OR Elastic License 2.0",
"main": "./target_node/index.js",
"types": "./target_types/index.d.ts",
"kibana": {
"devOnly": true
}

View file

@ -6,7 +6,6 @@
* Side Public License, v 1.
*/
export * from '@kbn/utils';
export { withProcRunner, ProcRunner } from './proc_runner';
export * from './tooling_log';
export * from './serializers';

View file

@ -38,7 +38,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-config:npm_module_types",
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-utils",
"@npm//ts-morph",
"@npm//@types/dedent",

View file

@ -9,7 +9,8 @@
import Fs from 'fs';
import Path from 'path';
import { REPO_ROOT, run, CiStatsReporter, createFlagError } from '@kbn/dev-utils';
import { run, CiStatsReporter, createFlagError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Project } from 'ts-morph';
import { writePluginDocs } from './mdx/write_plugin_mdx_docs';
@ -248,7 +249,7 @@ export function runBuildApiDocsCli() {
boolean: ['references'],
help: `
--plugin Optionally, run for only a specific plugin
--stats Optionally print API stats. Must be one or more of: any, comments or exports.
--stats Optionally print API stats. Must be one or more of: any, comments or exports.
--references Collect references for API items
`,
},

View file

@ -12,7 +12,8 @@ import globby from 'globby';
import loadJsonFile from 'load-json-file';
import { getPluginSearchPaths } from '@kbn/config';
import { simpleKibanaPlatformPluginDiscovery, REPO_ROOT } from '@kbn/dev-utils';
import { simpleKibanaPlatformPluginDiscovery } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { ApiScope, PluginOrPackage } from './types';
export function findPlugins(): PluginOrPackage[] {

View file

@ -44,7 +44,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-test",
"//packages/kbn-utils",
"@npm//@elastic/elasticsearch",

View file

@ -9,7 +9,8 @@
import { resolve, relative } from 'path';
import { createReadStream } from 'fs';
import { Readable } from 'stream';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { KbnClient } from '@kbn/test';
import type { Client } from '@elastic/elasticsearch';
import { createPromiseFromStreams, concatStreamProviders } from '@kbn/utils';

View file

@ -10,8 +10,8 @@ import { resolve, relative } from 'path';
import { stat, Stats, rename, createReadStream, createWriteStream } from 'fs';
import { Readable, Writable } from 'stream';
import { fromNode } from 'bluebird';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { createPromiseFromStreams } from '@kbn/utils';
import { ToolingLog } from '@kbn/dev-utils';
import { createPromiseFromStreams, REPO_ROOT } from '@kbn/utils';
import {
prioritizeMappings,
readDirectory,

View file

@ -10,8 +10,8 @@ import { resolve, relative } from 'path';
import { createWriteStream, mkdirSync } from 'fs';
import { Readable, Writable } from 'stream';
import type { Client } from '@elastic/elasticsearch';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { createListStream, createPromiseFromStreams } from '@kbn/utils';
import { ToolingLog } from '@kbn/dev-utils';
import { createListStream, createPromiseFromStreams, REPO_ROOT } from '@kbn/utils';
import {
createStats,

View file

@ -10,9 +10,9 @@ import { resolve, relative } from 'path';
import { createReadStream } from 'fs';
import { Readable, Writable } from 'stream';
import type { Client } from '@elastic/elasticsearch';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { KbnClient } from '@kbn/test';
import { createPromiseFromStreams } from '@kbn/utils';
import { createPromiseFromStreams, REPO_ROOT } from '@kbn/utils';
import {
isGzip,

View file

@ -10,7 +10,8 @@ import Fs from 'fs';
import Path from 'path';
import type { Client } from '@elastic/elasticsearch';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { KbnClient } from '@kbn/test';
import {

View file

@ -6,13 +6,14 @@
* Side Public License, v 1.
*/
import { ToolingLog } from '@kbn/dev-utils';
import {
createListStream,
createPromiseFromStreams,
createConcatStream,
createMapStream,
ToolingLog,
} from '@kbn/dev-utils';
} from '@kbn/utils';
import { createGenerateDocRecordsStream } from './generate_doc_records_stream';
import { Progress } from '../progress';

View file

@ -6,12 +6,9 @@
* Side Public License, v 1.
*/
import {
createListStream,
createPromiseFromStreams,
ToolingLog,
createRecursiveSerializer,
} from '@kbn/dev-utils';
import { ToolingLog, createRecursiveSerializer } from '@kbn/dev-utils';
import { createListStream, createPromiseFromStreams } from '@kbn/utils';
import { Progress } from '../progress';
import { createIndexDocRecordsStream } from './index_doc_records_stream';

View file

@ -9,7 +9,7 @@
const Fs = require('fs');
const Path = require('path');
const ts = require('typescript');
const { REPO_ROOT } = require('@kbn/dev-utils');
const { REPO_ROOT } = require('@kbn/utils');
const { ExportSet } = require('./export_set');
/** @typedef {import("@typescript-eslint/types").TSESTree.ExportAllDeclaration} ExportAllDeclaration */

View file

@ -38,10 +38,12 @@ RUNTIME_DEPS = [
"//packages/kbn-ui-shared-deps-npm",
"//packages/kbn-ui-shared-deps-src",
"//packages/kbn-utils",
"@npm//@babel/core",
"@npm//chalk",
"@npm//clean-webpack-plugin",
"@npm//compression-webpack-plugin",
"@npm//cpy",
"@npm//dedent",
"@npm//del",
"@npm//execa",
"@npm//jest-diff",
@ -65,7 +67,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-config:npm_module_types",
"//packages/kbn-config-schema:npm_module_types",
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-std",
"//packages/kbn-ui-shared-deps-npm",
"//packages/kbn-ui-shared-deps-src",
@ -81,7 +83,9 @@ TYPES_DEPS = [
"@npm//resize-observer-polyfill",
"@npm//rxjs",
"@npm//zlib",
"@npm//@types/babel__core",
"@npm//@types/compression-webpack-plugin",
"@npm//@types/dedent",
"@npm//@types/jest",
"@npm//@types/json-stable-stringify",
"@npm//@types/js-yaml",

View file

@ -8,7 +8,8 @@
import Path from 'path';
import { run, REPO_ROOT } from '@kbn/dev-utils';
import { run } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { OptimizerConfig } from '../optimizer';
import { parseStats, inAnyEntryChunk } from './parse_stats';

View file

@ -39,7 +39,7 @@ import Crypto from 'crypto';
import * as babel from '@babel/core';
import { addHook } from 'pirates';
import { REPO_ROOT, UPSTREAM_BRANCH } from '@kbn/dev-utils';
import { REPO_ROOT, UPSTREAM_BRANCH } from '@kbn/utils';
import sourceMapSupport from 'source-map-support';
import { Cache } from './cache';

View file

@ -9,7 +9,8 @@
jest.mock('execa');
import { getChanges } from './get_changes';
import { REPO_ROOT, createAbsolutePathSerializer } from '@kbn/dev-utils';
import { createAbsolutePathSerializer } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
const execa: jest.Mock = jest.requireMock('execa');

View file

@ -10,7 +10,7 @@ import Path from 'path';
import execa from 'execa';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
export type Changes = Map<string, 'modified' | 'deleted'>;

View file

@ -51,7 +51,7 @@ RUNTIME_DEPS = [
TYPES_DEPS = [
"//packages/kbn-utils",
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"@npm//del",
"@npm//execa",
"@npm//globby",

View file

@ -42,7 +42,7 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-optimizer",
"//packages/kbn-utils",
"@npm//del",

View file

@ -32,6 +32,7 @@ RUNTIME_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-ui-shared-deps-npm",
"//packages/kbn-ui-shared-deps-src",
"//packages/kbn-utils",
"@npm//@storybook/addons",
"@npm//@storybook/api",
"@npm//@storybook/components",
@ -47,9 +48,10 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-ui-shared-deps-npm",
"//packages/kbn-ui-shared-deps-src",
"//packages/kbn-utils",
"@npm//@storybook/addons",
"@npm//@storybook/api",
"@npm//@storybook/components",

View file

@ -7,7 +7,7 @@
*/
import { resolve } from 'path';
import { REPO_ROOT as KIBANA_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT as KIBANA_ROOT } from '@kbn/utils';
export const REPO_ROOT = KIBANA_ROOT;
export const ASSET_DIR = resolve(KIBANA_ROOT, 'built_assets/storybook');

View file

@ -38,8 +38,9 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-utility-types",
"@npm//tslib",
"@npm//@types/glob",
"@npm//@types/jest",
"@npm//@types/listr",

View file

@ -44,11 +44,13 @@ RUNTIME_DEPS = [
"@npm//axios",
"@npm//@babel/traverse",
"@npm//chance",
"@npm//dedent",
"@npm//del",
"@npm//enzyme",
"@npm//execa",
"@npm//exit-hook",
"@npm//form-data",
"@npm//getopts",
"@npm//globby",
"@npm//he",
"@npm//history",
@ -59,6 +61,7 @@ RUNTIME_DEPS = [
"@npm//@jest/reporters",
"@npm//joi",
"@npm//mustache",
"@npm//normalize-path",
"@npm//parse-link-header",
"@npm//prettier",
"@npm//react-dom",
@ -72,13 +75,17 @@ RUNTIME_DEPS = [
]
TYPES_DEPS = [
"//packages/kbn-dev-utils",
"//packages/kbn-dev-utils:npm_module_types",
"//packages/kbn-i18n-react:npm_module_types",
"//packages/kbn-std",
"//packages/kbn-utils",
"@npm//@elastic/elasticsearch",
"@npm//axios",
"@npm//elastic-apm-node",
"@npm//del",
"@npm//exit-hook",
"@npm//form-data",
"@npm//getopts",
"@npm//jest",
"@npm//jest-cli",
"@npm//jest-snapshot",
@ -86,6 +93,7 @@ TYPES_DEPS = [
"@npm//rxjs",
"@npm//xmlbuilder",
"@npm//@types/chance",
"@npm//@types/dedent",
"@npm//@types/enzyme",
"@npm//@types/he",
"@npm//@types/history",
@ -93,6 +101,7 @@ TYPES_DEPS = [
"@npm//@types/joi",
"@npm//@types/lodash",
"@npm//@types/mustache",
"@npm//@types/normalize-path",
"@npm//@types/node",
"@npm//@types/parse-link-header",
"@npm//@types/prettier",

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { kibanaPackageJson as pkg } from '@kbn/dev-utils';
import { kibanaPackageJson as pkg } from '@kbn/utils';
import Url from 'url';
import { adminTestUser } from '../kbn';

View file

@ -8,7 +8,7 @@
import Path from 'path';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
/**
* Traverse the suites configured and ensure that each suite has no more than one ciGroup assigned

View file

@ -14,7 +14,7 @@ jest.mock('@kbn/utils', () => {
return { REPO_ROOT: '/dev/null/root' };
});
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Lifecycle } from './lifecycle';
import { SuiteTracker } from './suite_tracker';
import { Suite } from '../fake_mocha_types';

View file

@ -9,7 +9,7 @@
const Fs = require('fs');
const Path = require('path');
const { REPO_ROOT: REPO_ROOT_FOLLOWING_SYMLINKS } = require('@kbn/dev-utils');
const { REPO_ROOT: REPO_ROOT_FOLLOWING_SYMLINKS } = require('@kbn/utils');
const BASE_REPO_ROOT = Path.resolve(
Fs.realpathSync(Path.resolve(REPO_ROOT_FOLLOWING_SYMLINKS, 'package.json')),
'..'

View file

@ -9,7 +9,8 @@
import { relative } from 'path';
import * as Rx from 'rxjs';
import { startWith, switchMap, take } from 'rxjs/operators';
import { withProcRunner, ToolingLog, REPO_ROOT, getTimeReporter } from '@kbn/dev-utils';
import { withProcRunner, ToolingLog, getTimeReporter } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import dedent from 'dedent';
import {

View file

@ -12,7 +12,8 @@ import { existsSync } from 'fs';
import Path from 'path';
import FormData from 'form-data';
import { ToolingLog, isAxiosResponseError, createFailError, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog, isAxiosResponseError, createFailError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { KbnClientRequester, uriencode, ReqOptions } from './kbn_client_requester';
import { KbnClientSavedObjects } from './kbn_client_saved_objects';

View file

@ -8,7 +8,7 @@
import { spawnSync } from 'child_process';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
const INVALID_CONFIG_PATH = require.resolve('./__fixtures__/invalid_config.yml');

View file

@ -7,7 +7,7 @@
*/
import supertest from 'supertest';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { HttpService, InternalHttpServicePreboot, InternalHttpServiceSetup } from '../../http';
import { contextServiceMock } from '../../context/context_service.mock';
import { executionContextServiceMock } from '../../execution_context/execution_context_service.mock';

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
import { CoreContext } from './core_context';
import { Env, IConfigService } from './config';

View file

@ -21,7 +21,7 @@ import { MockClusterClient, isScriptingEnabledMock } from './elasticsearch_servi
import type { NodesVersionCompatibility } from './version_check/ensure_es_version';
import { BehaviorSubject } from 'rxjs';
import { first } from 'rxjs/operators';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Env } from '../config';
import { configServiceMock, getEnvOptions } from '../config/mocks';
import { CoreContext } from '../core_context';

View file

@ -8,7 +8,7 @@
import { parse as parseCookie } from 'tough-cookie';
import supertest from 'supertest';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { ByteSizeValue } from '@kbn/config-schema';
import { BehaviorSubject } from 'rxjs';

View file

@ -10,7 +10,7 @@ import { mockHttpServer } from './http_service.test.mocks';
import { noop } from 'lodash';
import { BehaviorSubject } from 'rxjs';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { getEnvOptions } from '../config/mocks';
import { HttpService } from '.';
import { HttpConfigType, config } from './http_config';

View file

@ -8,7 +8,7 @@
import { BehaviorSubject } from 'rxjs';
import moment from 'moment';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { ByteSizeValue } from '@kbn/config-schema';
import { Env } from '../config';
import { HttpService } from './http_service';

View file

@ -7,7 +7,7 @@
*/
// must be before mocks imports to avoid conflicting with `REPO_ROOT` accessor.
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { mockPackage, scanPluginSearchPathsMock } from './plugins_discovery.test.mocks';
import mockFs from 'mock-fs';
import { loggingSystemMock } from '../../logging/logging_system.mock';

View file

@ -7,7 +7,7 @@
*/
// must be before mocks imports to avoid conflicting with `REPO_ROOT` accessor.
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { mockPackage, mockDiscover } from './plugins_service.test.mocks';
import { join } from 'path';

View file

@ -8,7 +8,7 @@
import { join } from 'path';
import { BehaviorSubject } from 'rxjs';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { schema } from '@kbn/config-schema';
import { Env } from '../config';

View file

@ -8,7 +8,7 @@
import { duration } from 'moment';
import { first } from 'rxjs/operators';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { fromRoot } from '@kbn/utils';
import {
createPluginInitializerContext,

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { getEnvOptions } from '../config/mocks';
import { PluginsConfig, PluginsConfigType } from './plugins_config';
import { Env } from '../config';

View file

@ -11,7 +11,8 @@ import { mockDiscover, mockPackage } from './plugins_service.test.mocks';
import { resolve, join } from 'path';
import { BehaviorSubject, from } from 'rxjs';
import { schema } from '@kbn/config-schema';
import { createAbsolutePathSerializer, REPO_ROOT } from '@kbn/dev-utils';
import { createAbsolutePathSerializer } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { ConfigPath, ConfigService, Env } from '../config';
import { rawConfigServiceMock, getEnvOptions } from '../config/mocks';

View file

@ -14,7 +14,7 @@ import {
import { BehaviorSubject } from 'rxjs';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Env } from '../config';
import { configServiceMock, getEnvOptions } from '../config/mocks';
import { CoreContext } from '../core_context';

View file

@ -7,7 +7,7 @@
*/
import { nextTick } from '@kbn/test/jest';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { LoggerFactory } from '@kbn/logging';
import { Env } from '@kbn/config';
import { getEnvOptions } from '../config/mocks';

View file

@ -10,7 +10,7 @@ import { rawConfigService, configService, logger, mockServer } from './index.tes
import { BehaviorSubject } from 'rxjs';
import { filter, first } from 'rxjs/operators';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { getEnvOptions } from '../config/mocks';
import { Root } from '.';
import { Env } from '../config';

View file

@ -8,7 +8,7 @@
import path from 'path';
import { unlink } from 'fs/promises';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Env } from '@kbn/config';
import { getEnvOptions } from '../../../config/mocks';
import * as kbnTestServer from '../../../../test_helpers/kbn_server';

View file

@ -10,7 +10,7 @@ import Path from 'path';
import Fs from 'fs';
import Util from 'util';
import Semver from 'semver';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Env } from '@kbn/config';
import { getEnvOptions } from '../../../config/mocks';
import * as kbnTestServer from '../../../../test_helpers/kbn_server';

View file

@ -10,7 +10,7 @@ import Path from 'path';
import Fs from 'fs';
import Util from 'util';
import Semver from 'semver';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { Env } from '@kbn/config';
import { getEnvOptions } from '../../../config/mocks';
import * as kbnTestServer from '../../../../test_helpers/kbn_server';

View file

@ -19,7 +19,7 @@ import {
import { BehaviorSubject } from 'rxjs';
import { RawPackageInfo } from '@kbn/config';
import { ByteSizeValue } from '@kbn/config-schema';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { SavedObjectsService } from './saved_objects_service';
import { mockCoreContext } from '../core_context.mock';

View file

@ -26,7 +26,7 @@ import {
} from './server.test.mocks';
import { BehaviorSubject } from 'rxjs';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { rawConfigServiceMock, getEnvOptions } from './config/mocks';
import { Env } from './config';
import { Server } from './server';

View file

@ -7,7 +7,7 @@
*/
import { Env } from '@kbn/config';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { getEnvOptions } from '../../config/mocks';
import { startServers, stopServers } from './lib';
import { docExistsSuite } from './doc_exists';

View file

@ -6,7 +6,8 @@
* Side Public License, v 1.
*/
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import {
createTestEsCluster,
CreateTestEsClusterOptions,

View file

@ -6,7 +6,7 @@
* Side Public License, v 1.
*/
import { kibanaPackageJson as pkg } from '@kbn/dev-utils';
import { kibanaPackageJson as pkg } from '@kbn/utils';
import { getVersionInfo } from '../version_info';

View file

@ -10,7 +10,8 @@ import { resolve } from 'path';
import { readFileSync } from 'fs';
import { copyFile } from 'fs/promises';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import Mustache from 'mustache';
import { compressTar, copyAll, mkdirp, write, Config } from '../../../lib';

View file

@ -10,7 +10,8 @@ import { access, link, unlink, chmod } from 'fs';
import { resolve, basename } from 'path';
import { promisify } from 'util';
import { ToolingLog, kibanaPackageJson } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { kibanaPackageJson } from '@kbn/utils';
import { write, copyAll, mkdirp, exec, Config, Build } from '../../../lib';
import * as dockerTemplates from './templates';

View file

@ -6,7 +6,8 @@
* Side Public License, v 1.
*/
import { run, REPO_ROOT, ToolingLog } from '@kbn/dev-utils';
import { run, ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import chalk from 'chalk';
import cheerio from 'cheerio';
import fs from 'fs';

View file

@ -7,7 +7,8 @@
*/
import { enumeratePatterns } from '../team_assignment/enumerate_patterns';
import { ToolingLog, REPO_ROOT } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
const log = new ToolingLog({
level: 'info',

View file

@ -6,7 +6,8 @@
* Side Public License, v 1.
*/
import { run, createFlagError, REPO_ROOT } from '@kbn/dev-utils';
import { run, createFlagError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { parse } from './parse_owners';
import { flush } from './flush';
import { enumeratePatterns } from './enumerate_patterns';

View file

@ -12,7 +12,8 @@ import Fs from 'fs/promises';
import execa from 'execa';
import { safeLoad } from 'js-yaml';
import { run, REPO_ROOT } from '@kbn/dev-utils';
import { run } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { schema } from '@kbn/config-schema';
const RELATIVE_JOBS_YAML_PATH = '.ci/ci_groups.yml';

View file

@ -14,7 +14,8 @@ import execa from 'execa';
import * as Rx from 'rxjs';
import { mergeMap, reduce } from 'rxjs/operators';
import { supportsColor } from 'chalk';
import { REPO_ROOT, run, createFailError } from '@kbn/dev-utils';
import { run, createFailError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { lastValueFrom } from '@kbn/std';
import { PROJECTS } from '../typescript/projects';

View file

@ -8,11 +8,9 @@
import Path from 'path';
import { getPluginSearchPaths } from '@kbn/config';
import {
KibanaPlatformPlugin,
REPO_ROOT,
simpleKibanaPlatformPluginDiscovery,
} from '@kbn/dev-utils';
import { KibanaPlatformPlugin, simpleKibanaPlatformPluginDiscovery } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
export interface SearchOptions {
oss: boolean;

View file

@ -9,7 +9,8 @@
import Path from 'path';
import dedent from 'dedent';
import { run, REPO_ROOT, createFailError } from '@kbn/dev-utils';
import { run, createFailError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
const DEFAULT_DOC_REPO_PATH = Path.resolve(REPO_ROOT, '..', 'docs');

View file

@ -10,7 +10,8 @@ import dedent from 'dedent';
import { parseDependencyTree, parseCircular, prettyCircular } from 'dpdm';
import { relative } from 'path';
import { getPluginSearchPaths } from '@kbn/config';
import { REPO_ROOT, run } from '@kbn/dev-utils';
import { run } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
interface Options {
debug?: boolean;

View file

@ -8,7 +8,8 @@
import SimpleGit from 'simple-git/promise';
import { run, combineErrors, createFlagError, REPO_ROOT } from '@kbn/dev-utils';
import { run, combineErrors, createFlagError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import * as Eslint from './eslint';
import * as Stylelint from './stylelint';
import { getFilesForCommit, checkFileCasing } from './precommit_hook';

View file

@ -8,7 +8,8 @@
import Path from 'path';
import { ToolingLog, REPO_ROOT, ProcRunner } from '@kbn/dev-utils';
import { ToolingLog, ProcRunner } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { ROOT_REFS_CONFIG_PATH } from './root_refs_config';
import { Project } from './project';

View file

@ -8,7 +8,8 @@
import Path from 'path';
import { run, REPO_ROOT, createFlagError } from '@kbn/dev-utils';
import { run, createFlagError } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import del from 'del';
import { RefOutputCache } from './ref_output_cache';

View file

@ -9,7 +9,8 @@
import Path from 'path';
import Fs from 'fs/promises';
import { ToolingLog, kibanaPackageJson, extract } from '@kbn/dev-utils';
import { ToolingLog, extract } from '@kbn/dev-utils';
import { kibanaPackageJson } from '@kbn/utils';
import del from 'del';
import tempy from 'tempy';

View file

@ -10,7 +10,8 @@ import Path from 'path';
import Fs from 'fs/promises';
import dedent from 'dedent';
import { REPO_ROOT, ToolingLog } from '@kbn/dev-utils';
import { ToolingLog } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import normalize from 'normalize-path';
import { PROJECTS } from './projects';

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { kibanaPackageJson } from '@kbn/dev-utils';
import { kibanaPackageJson } from '@kbn/utils';
import { GetDeprecationsContext } from '../../../../../src/core/server';
import { CloudSetup } from '../../../cloud/server';

View file

@ -7,7 +7,7 @@
import expect from '@kbn/expect';
import { resolve } from 'path';
import { REPO_ROOT } from '@kbn/dev-utils';
import { REPO_ROOT } from '@kbn/utils';
import { FtrProviderContext } from '../../../functional/ftr_provider_context';
const INTEGRATION_TEST_ROOT = process.env.WORKSPACE || resolve(REPO_ROOT, '../integration-test');

View file

@ -5809,6 +5809,10 @@
version "0.0.0"
uid ""
"@types/kbn__dev-utils@link:bazel-bin/packages/kbn-dev-utils/npm_module_types":
version "0.0.0"
uid ""
"@types/kbn__docs-utils@link:bazel-bin/packages/kbn-docs-utils/npm_module_types":
version "0.0.0"
uid ""