diff --git a/BUILD.gn b/BUILD.gn index ff5138b0b3..b1b82ac740 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -184,7 +184,6 @@ target_gen_default_app_js = "$target_gen_dir/js/default_app" typescript_build("default_app_js") { deps = [ ":build_electron_definitions" ] - type_root = rebase_path("$target_gen_dir/tsc/electron/typings") sources = filenames.default_app_ts_sources diff --git a/build/tsc.gni b/build/tsc.gni index 339cb245ca..ec24c694ae 100644 --- a/build/tsc.gni +++ b/build/tsc.gni @@ -26,19 +26,12 @@ template("typescript_build") { "//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/" args = [ "-p", rebase_path(invoker.tsconfig), "--outDir", rebase_path("$base_out_path" + invoker.output_dir_name), - "--typeRoots", - type_roots, ] outputs = []