[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 # Ignore gihub folder to avoid pings on backports
.github .github
# Automatically generated and user-modifiable
/tsconfig.refs.json
# Yarn local mirror content # Yarn local mirror content
.yarn-local-mirror .yarn-local-mirror

View file

@ -3,7 +3,9 @@
exports_files( exports_files(
[ [
"tsconfig.base.json", "tsconfig.base.json",
"tsconfig.bazel.json",
"tsconfig.browser.json", "tsconfig.browser.json",
"tsconfig.browser_bazel.json",
"tsconfig.json", "tsconfig.json",
"package.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", "extends": "../../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"composite": true,
"outDir": "./target/types", "outDir": "./target/types",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"declaration": true, "declaration": true,

View file

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

View file

@ -1,8 +1,7 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -13,6 +12,11 @@
], ],
"exclude": [], "exclude": [],
"references": [ "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",

View file

@ -1,8 +1,7 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -15,6 +14,12 @@
"exclude": [], "exclude": [],
"references": [ "references": [
{ "path": "../../src/core/tsconfig.json" }, { "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -14,6 +13,10 @@
"exclude": [], "exclude": [],
"references": [ "references": [
{ "path": "../../src/core/tsconfig.json" }, { "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -14,5 +13,9 @@
"references": [ "references": [
{ "path": "../../src/core/tsconfig.json" }, { "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -14,5 +13,8 @@
"references": [ "references": [
{ "path": "../../src/core/tsconfig.json" }, { "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -13,6 +12,7 @@
], ],
"exclude": [], "exclude": [],
"references": [ "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -13,6 +12,9 @@
], ],
"exclude": [], "exclude": [],
"references": [ "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"composite": true,
"outDir": "./target/types", "outDir": "./target/types",
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"declaration": true, "declaration": true,

View file

@ -1,8 +1,7 @@
{ {
"extends": "../../tsconfig.base.json", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -14,6 +13,7 @@
], ],
"exclude": [], "exclude": [],
"references": [ "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -13,5 +12,11 @@
"../../typings/**/*" "../../typings/**/*"
], ],
"exclude": [], "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -14,6 +13,12 @@
], ],
"exclude": [], "exclude": [],
"references": [ "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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -17,5 +16,8 @@
{ "path": "../../src/core/tsconfig.json" }, { "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_utils/tsconfig.json" }, { "path": "../../src/plugins/kibana_utils/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -13,7 +12,7 @@
], ],
"exclude": [], "exclude": [],
"references": [ "references": [
{ "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/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", "extends": "../../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./target", "outDir": "./target/types"
"skipLibCheck": true
}, },
"include": [ "include": [
"index.ts", "index.ts",
@ -14,5 +13,8 @@
"references": [ "references": [
{ "path": "../../src/core/tsconfig.json" }, { "path": "../../src/core/tsconfig.json" },
{ "path": "../../src/plugins/kibana_react/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", src = "tsconfig.json",
deps = [ deps = [
"//:tsconfig.base.json", "//:tsconfig.base.json",
"//:tsconfig.bazel.json",
], ],
) )
@ -50,7 +51,6 @@ ts_project(
declaration = True, declaration = True,
declaration_map = True, declaration_map = True,
emit_declaration_only = True, emit_declaration_only = True,
incremental = False,
out_dir = "target_types", out_dir = "target_types",
source_map = True, source_map = True,
root_dir = "src", root_dir = "src",

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -12,12 +12,16 @@ import Path from 'path';
import { pipeline } from 'stream'; import { pipeline } from 'stream';
import { promisify } from 'util'; import { promisify } from 'util';
import { lastValueFrom } from '@kbn/std';
import Tar from 'tar'; import Tar from 'tar';
import Yauzl, { ZipFile, Entry } from 'yauzl'; import Yauzl, { ZipFile, Entry } from 'yauzl';
import * as Rx from 'rxjs'; import * as Rx from 'rxjs';
import { map, mergeMap, takeUntil } from 'rxjs/operators'; 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); const asyncPipeline = promisify(pipeline);
interface Options { interface Options {
@ -36,6 +40,11 @@ interface Options {
* Number of path segments to strip form paths in the archive, like --strip-components from tar * Number of path segments to strip form paths in the archive, like --strip-components from tar
*/ */
stripComponents?: number; 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 * 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 * 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 }); await Fs.mkdir(targetDir, { recursive: true });
if (archivePath.endsWith('.tar') || archivePath.endsWith('.tar.gz')) { if (archivePath.endsWith('.tar') || archivePath.endsWith('.tar.gz')) {
@ -98,7 +112,7 @@ export async function extract({ archivePath, targetDir, stripComponents = 0 }: O
} }
// file entry // file entry
return openReadStream$(entry).pipe( const writeFile$ = openReadStream$(entry).pipe(
mergeMap(async (readStream) => { mergeMap(async (readStream) => {
if (!readStream) { if (!readStream) {
throw new Error('no readstream provided by yauzl'); 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 // write the file contents to disk
await asyncPipeline(readStream, createWriteStream(fileName)); 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 // trigger the initial 'entry' event, happens async so the event will be delivered after the observable is subscribed
zipFile.readEntry(); 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. * Side Public License, v 1.
*/ */
import moment from 'moment';
import * as Rx from 'rxjs'; import * as Rx from 'rxjs';
import { filter, first, catchError, map } from 'rxjs/operators'; import { filter, first, catchError, map } from 'rxjs/operators';
import exitHook from 'exit-hook'; import exitHook from 'exit-hook';
@ -199,8 +198,12 @@ export class ProcRunner {
// tie into proc outcome$, remove from _procs on compete // tie into proc outcome$, remove from _procs on compete
proc.outcome$.subscribe({ proc.outcome$.subscribe({
next: (code) => { next: (code) => {
const duration = moment.duration(Date.now() - startMs); this.log.info(
this.log.info('[%s] exited with %s after %s', name, code, duration.humanize()); '[%s] exited with %s after %s seconds',
name,
code,
((Date.now() - startMs) / 1000).toFixed(1)
);
}, },
complete: () => { complete: () => {
remove(); remove();

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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