[build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139)

* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	.gitignore
#	examples/hello_world/tsconfig.json
#	tsconfig.json
#	tsconfig.refs.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Spencer 2021-08-11 02:08:54 -07:00 committed by GitHub
parent a4ee786ca8
commit 79e45f2190
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
337 changed files with 1157 additions and 1279 deletions

3
.gitignore vendored
View file

@ -78,6 +78,9 @@ report.asciidoc
# Ignore gihub folder to avoid pings on backports
.github
# Automatically generated and user-modifiable
/tsconfig.refs.json
# Yarn local mirror content
.yarn-local-mirror

View file

@ -3,7 +3,9 @@
exports_files(
[
"tsconfig.base.json",
"tsconfig.bazel.json",
"tsconfig.browser.json",
"tsconfig.browser_bazel.json",
"tsconfig.json",
"package.json"
],

View file

@ -41,7 +41,6 @@ Additionally, in order to migrate into project refs, you also need to make sure
{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types",
},
"include": [
"index.ts",
@ -14,6 +13,8 @@
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
{ "path": "../../src/plugins/bfetch/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -13,6 +12,11 @@
],
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" }
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/dashboard/tsconfig.json" },
{ "path": "../../src/plugins/embeddable/tsconfig.json" },
{ "path": "../../src/plugins/es_ui_shared/tsconfig.json" },
{ "path": "../embeddable_examples/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -15,6 +14,12 @@
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/ui_actions/tsconfig.json" },
{ "path": "../../src/plugins/embeddable/tsconfig.json" },
{ "path": "../../src/plugins/dashboard/tsconfig.json" },
{ "path": "../../src/plugins/saved_objects/tsconfig.json" },
{ "path": "../../src/plugins/presentation_util/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -14,6 +13,10 @@
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/inspector/tsconfig.json" }
{ "path": "../../src/plugins/embeddable/tsconfig.json" },
{ "path": "../../src/plugins/ui_actions/tsconfig.json" },
{ "path": "../../src/plugins/inspector/tsconfig.json" },
{ "path": "../embeddable_examples/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -14,5 +13,9 @@
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/expressions/tsconfig.json" },
{ "path": "../../src/plugins/ui_actions/tsconfig.json" },
{ "path": "../../src/plugins/inspector/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -14,5 +13,8 @@
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/data/tsconfig.json" },
{ "path": "../../src/plugins/index_pattern_field_editor/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -13,6 +12,7 @@
],
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" }
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/share/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -13,6 +12,9 @@
],
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" }
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/share/tsconfig.json" },
{ "path": "../locator_examples/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"outDir": "./target/types",
"emitDeclarationOnly": true,
"declaration": true,

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -14,6 +13,7 @@
],
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" }
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -13,5 +12,11 @@
"../../typings/**/*"
],
"exclude": [],
"references": [{ "path": "../../src/core/tsconfig.json" }]
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/navigation/tsconfig.json" },
{ "path": "../../src/plugins/screenshot_mode/tsconfig.json" },
{ "path": "../../src/plugins/usage_collection/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -14,6 +13,12 @@
],
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" }
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/data/tsconfig.json" },
{ "path": "../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/navigation/tsconfig.json" },
{ "path": "../../src/plugins/share/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -17,5 +16,8 @@
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/navigation/tsconfig.json" },
{ "path": "../../src/plugins/data/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -13,7 +12,7 @@
],
"exclude": [],
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/ui_actions/tsconfig.json" },
]
}

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",
@ -14,5 +13,8 @@
"references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/tsconfig.json" },
{ "path": "../../src/plugins/ui_actions/tsconfig.json" },
{ "path": "../ui_action_examples/tsconfig.json" },
{ "path": "../developer_examples/tsconfig.json" },
]
}

View file

@ -39,6 +39,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -50,7 +51,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "target_types",
"rootDir": "src",
"sourceMap": true,

View file

@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"incremental": false,
},
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {},
"include": [
"**/*",
],

View file

@ -55,6 +55,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -66,7 +67,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "./target_types",
"sourceMap": true,
"sourceRoot": "../../../../packages/kbn-ace/src",

View file

@ -50,6 +50,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -59,6 +60,7 @@ ts_config(
deps = [
"//:tsconfig.base.json",
"//:tsconfig.browser.json",
"//:tsconfig.browser_bazel.json",
],
)
@ -70,7 +72,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
root_dir = "src",
source_map = True,

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"isolatedModules": true,
"outDir": "./target_types",
"sourceMap": true,

View file

@ -53,6 +53,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -64,7 +65,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "./target_types",
"rootDir": "./src",
"sourceMap": true,

View file

@ -40,6 +40,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -51,7 +52,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "target_types",
"rootDir": "src",
"sourceMap": true,

View file

@ -82,6 +82,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -93,7 +94,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
root_dir = "src",
source_map = True,

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "./target_types",
"rootDir": "./src",
"sourceMap": true,

View file

@ -51,6 +51,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -62,7 +63,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "target_types",
"rootDir": "src",
"sourceMap": true,

View file

@ -68,6 +68,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -79,7 +80,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "./target_types",
"rootDir": "src",
"sourceMap": true,

View file

@ -48,6 +48,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -58,7 +59,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"outDir": "./target/types",
"declaration": true,
"declarationMap": true,
"rootDir": "src",

View file

@ -56,7 +56,6 @@ RUNTIME_DEPS = [
"@npm//globby",
"@npm//load-json-file",
"@npm//markdown-it",
"@npm//moment",
"@npm//normalize-path",
"@npm//rxjs",
"@npm//tar",
@ -100,6 +99,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -111,7 +111,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -12,12 +12,16 @@ import Path from 'path';
import { pipeline } from 'stream';
import { promisify } from 'util';
import { lastValueFrom } from '@kbn/std';
import Tar from 'tar';
import Yauzl, { ZipFile, Entry } from 'yauzl';
import * as Rx from 'rxjs';
import { map, mergeMap, takeUntil } from 'rxjs/operators';
const strComplete = (obs: Rx.Observable<unknown>) =>
new Promise<void>((resolve, reject) => {
obs.subscribe({ complete: resolve, error: reject });
});
const asyncPipeline = promisify(pipeline);
interface Options {
@ -36,6 +40,11 @@ interface Options {
* Number of path segments to strip form paths in the archive, like --strip-components from tar
*/
stripComponents?: number;
/**
* Write modified timestamps to extracted files
*/
setModifiedTimes?: Date;
}
/**
@ -43,7 +52,12 @@ interface Options {
* for both archive types, only tested with familiar archives we create so might not
* support some weird exotic zip features we don't use in our own snapshot/build tooling
*/
export async function extract({ archivePath, targetDir, stripComponents = 0 }: Options) {
export async function extract({
archivePath,
targetDir,
stripComponents = 0,
setModifiedTimes,
}: Options) {
await Fs.mkdir(targetDir, { recursive: true });
if (archivePath.endsWith('.tar') || archivePath.endsWith('.tar.gz')) {
@ -98,7 +112,7 @@ export async function extract({ archivePath, targetDir, stripComponents = 0 }: O
}
// file entry
return openReadStream$(entry).pipe(
const writeFile$ = openReadStream$(entry).pipe(
mergeMap(async (readStream) => {
if (!readStream) {
throw new Error('no readstream provided by yauzl');
@ -106,15 +120,23 @@ export async function extract({ archivePath, targetDir, stripComponents = 0 }: O
// write the file contents to disk
await asyncPipeline(readStream, createWriteStream(fileName));
// tell yauzl to read the next entry
zipFile.readEntry();
if (setModifiedTimes) {
// update the modified time of the file to match the zip entry
await Fs.utimes(fileName, setModifiedTimes, setModifiedTimes);
}
})
);
// tell yauzl to read the next entry
zipFile.readEntry();
return writeFile$;
})
);
// trigger the initial 'entry' event, happens async so the event will be delivered after the observable is subscribed
zipFile.readEntry();
await lastValueFrom(Rx.merge(entry$, error$));
await strComplete(Rx.merge(entry$, error$));
}

View file

@ -6,7 +6,6 @@
* Side Public License, v 1.
*/
import moment from 'moment';
import * as Rx from 'rxjs';
import { filter, first, catchError, map } from 'rxjs/operators';
import exitHook from 'exit-hook';
@ -199,8 +198,12 @@ export class ProcRunner {
// tie into proc outcome$, remove from _procs on compete
proc.outcome$.subscribe({
next: (code) => {
const duration = moment.duration(Date.now() - startMs);
this.log.info('[%s] exited with %s after %s', name, code, duration.humanize());
this.log.info(
'[%s] exited with %s after %s seconds',
name,
code,
((Date.now() - startMs) / 1000).toFixed(1)
);
},
complete: () => {
remove();

View file

@ -1,16 +1,14 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "target_types",
"rootDir": "src",
"sourceMap": true,
"sourceRoot": "../../../../packages/kbn-dev-utils/src",
"stripInternal": false,
"target": "ES2019",
"types": [
"jest",
"node"

View file

@ -47,6 +47,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -57,7 +58,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -4,4 +4,4 @@
"strictNullChecks": true,
},
"include": ["./**/*"]
}
}

View file

@ -1,9 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"target": "ES2019",
"outDir": "./target/types",
"declaration": true,
"declarationMap": true,
"rootDir": "src",

View file

@ -59,6 +59,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -69,7 +70,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,9 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"target": "ES2019",
"outDir": "./target/types",
"declaration": true,
"declarationMap": true,
"sourceMap": true,

View file

@ -84,6 +84,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -95,7 +96,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "./target_types",
"sourceMap": true,
"sourceRoot": "../../../../packages/kbn-es-query/src",

View file

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"tsBuildInfoFile": "../../build/tsbuildinfo/packages/kbn-es"
"outDir": "target/types"
},
"include": [
"src/**/*"

View file

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": false,
"skipLibCheck": false
},
"include": [
"expect.d.ts"

View file

@ -54,6 +54,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -65,7 +66,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": false,
"outDir": "./target_types",
"declaration": true,
"declarationMap": true,

View file

@ -73,6 +73,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -84,7 +85,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,10 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"incremental": false,
"outDir": "./target_types",
"sourceMap": true,
"sourceRoot": "../../../../../packages/kbn-i18n/src",

View file

@ -57,6 +57,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -68,7 +69,6 @@ ts_project(
allow_js = True,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"allowJs": true,
"incremental": true,
"outDir": "./target",
"outDir": "./target/types",
"declaration": true,
"declarationMap": true,
"rootDir": "src",

View file

@ -45,6 +45,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -55,7 +56,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"outDir": "./target/types",
"stripInternal": false,
"declaration": true,
"declarationMap": true,

View file

@ -52,6 +52,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -62,7 +63,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "target",
"stripInternal": false,
"declaration": true,

View file

@ -41,6 +41,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -51,7 +52,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "target",
"stripInternal": false,
"declaration": true,

View file

@ -43,6 +43,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -53,7 +54,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"outDir": "./target/types",
"declaration": true,
"declarationMap": true,
"rootDir": "src",

View file

@ -81,6 +81,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -92,7 +93,6 @@ ts_project(
declaration = True,
declaration_map = True,
emit_declaration_only = True,
incremental = False,
out_dir = "target_types",
source_map = True,
root_dir = "src",

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": false,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,

View file

@ -79,6 +79,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -89,7 +90,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"outDir": "./target/types",
"declaration": true,
"declarationMap": true,
"rootDir": "./src",

View file

@ -65,6 +65,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -75,7 +76,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./target",
"skipLibCheck": true
"outDir": "./target/types"
},
"include": [
"index.ts",

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "target",
"target": "ES2019",
"declaration": true,

View file

@ -56,6 +56,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -66,7 +67,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "target",
"target": "ES2018",
"declaration": true,

View file

@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"tsBuildInfoFile": "../../build/tsbuildinfo/packages/kbn-pm",
"outDir": "target/types",
"types": [
"jest",
"node"

View file

@ -40,6 +40,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -50,7 +51,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"incremental": true,
"outDir": "./target",
"outDir": "./target/types",
"stripInternal": false,
"declaration": true,
"declarationMap": true,

View file

@ -60,6 +60,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -69,6 +70,7 @@ ts_config(
deps = [
"//:tsconfig.base.json",
"//:tsconfig.browser.json",
"//:tsconfig.browser_bazel.json",
],
)
@ -81,7 +83,6 @@ ts_project(
declaration = True,
declaration_dir = "target_types",
declaration_map = True,
incremental = True,
out_dir = "target_node",
root_dir = "src",
source_map = True,
@ -95,7 +96,6 @@ ts_project(
deps = DEPS,
allow_js = True,
declaration = False,
incremental = True,
out_dir = "target_web",
source_map = True,
root_dir = "src",

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.browser.json",
"extends": "../../tsconfig.browser_bazel.json",
"compilerOptions": {
"allowJs": true,
"incremental": true,
"outDir": "./target_web",
"declaration": false,
"isolatedModules": true,

View file

@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"allowJs": true,
"incremental": true,
"declarationDir": "./target_types",
"outDir": "target_node",
"declaration": true,

View file

@ -44,7 +44,8 @@ ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -54,7 +55,6 @@ ts_project(
args = ["--pretty"],
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
root_dir = "src",
source_map = True,

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -45,7 +45,8 @@ ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -55,7 +56,6 @@ ts_project(
args = ["--pretty"],
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
root_dir = "src",
source_map = True,

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -53,6 +53,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -63,7 +64,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -54,6 +54,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -64,7 +65,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -52,6 +52,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -62,7 +63,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -51,6 +51,7 @@ ts_config(
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -61,7 +62,6 @@ ts_project(
deps = DEPS,
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
source_map = True,
root_dir = "src",

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -47,7 +47,8 @@ ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -57,7 +58,6 @@ ts_project(
args = ["--pretty"],
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
root_dir = "src",
source_map = True,

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -42,7 +42,8 @@ ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -52,7 +53,6 @@ ts_project(
args = ["--pretty"],
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
root_dir = "src",
source_map = True,

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -54,7 +54,8 @@ ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -64,7 +65,6 @@ ts_project(
args = ["--pretty"],
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
root_dir = "src",
source_map = True,

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

View file

@ -49,7 +49,8 @@ ts_config(
name = "tsconfig",
src = "tsconfig.json",
deps = [
"//:tsconfig.base.json",
"//:tsconfig.base.json",
"//:tsconfig.bazel.json",
],
)
@ -59,7 +60,6 @@ ts_project(
args = ["--pretty"],
declaration = True,
declaration_map = True,
incremental = True,
out_dir = "target",
root_dir = "src",
source_map = True,

View file

@ -1,9 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.bazel.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"incremental": true,
"outDir": "target",
"rootDir": "src",
"sourceMap": true,

Some files were not shown because too many files have changed in this diff Show more