build: drop use of --typeRoots for default_app (#26094)
This commit is contained in:
parent
d2727f5aba
commit
0603ef7bfd
2 changed files with 0 additions and 8 deletions
1
BUILD.gn
1
BUILD.gn
|
@ -184,7 +184,6 @@ target_gen_default_app_js = "$target_gen_dir/js/default_app"
|
||||||
|
|
||||||
typescript_build("default_app_js") {
|
typescript_build("default_app_js") {
|
||||||
deps = [ ":build_electron_definitions" ]
|
deps = [ ":build_electron_definitions" ]
|
||||||
type_root = rebase_path("$target_gen_dir/tsc/electron/typings")
|
|
||||||
|
|
||||||
sources = filenames.default_app_ts_sources
|
sources = filenames.default_app_ts_sources
|
||||||
|
|
||||||
|
|
|
@ -26,19 +26,12 @@ template("typescript_build") {
|
||||||
"//electron/typings/internal-electron.d.ts",
|
"//electron/typings/internal-electron.d.ts",
|
||||||
]
|
]
|
||||||
|
|
||||||
type_roots = "node_modules/@types,typings"
|
|
||||||
if (defined(invoker.type_root)) {
|
|
||||||
type_roots += "," + invoker.type_root
|
|
||||||
}
|
|
||||||
|
|
||||||
base_out_path = invoker.output_gen_dir + "/electron/"
|
base_out_path = invoker.output_gen_dir + "/electron/"
|
||||||
args = [
|
args = [
|
||||||
"-p",
|
"-p",
|
||||||
rebase_path(invoker.tsconfig),
|
rebase_path(invoker.tsconfig),
|
||||||
"--outDir",
|
"--outDir",
|
||||||
rebase_path("$base_out_path" + invoker.output_dir_name),
|
rebase_path("$base_out_path" + invoker.output_dir_name),
|
||||||
"--typeRoots",
|
|
||||||
type_roots,
|
|
||||||
]
|
]
|
||||||
|
|
||||||
outputs = []
|
outputs = []
|
||||||
|
|
Loading…
Reference in a new issue