diff --git a/ts/private/ts_lib.bzl b/ts/private/ts_lib.bzl index feb3fe26..75bffb07 100644 --- a/ts/private/ts_lib.bzl +++ b/ts/private/ts_lib.bzl @@ -230,7 +230,7 @@ def _validate_tsconfig_dirs(root_dir, out_dir, typings_out_dir): if typings_out_dir and typings_out_dir.find("../") != -1: fail("typings_out_dir cannot output to parent directory") -def _calculate_js_outs(srcs, out_dir = ".", root_dir = ".", allow_js = False, resolve_json_module = False, preserve_jsx = False, emit_declaration_only = False): +def _calculate_js_outs(srcs, out_dir, root_dir, allow_js, resolve_json_module, preserve_jsx, emit_declaration_only): if emit_declaration_only: return [] @@ -249,7 +249,7 @@ def _calculate_js_outs(srcs, out_dir = ".", root_dir = ".", allow_js = False, re return _to_js_out_paths(srcs, out_dir, root_dir, allow_js, resolve_json_module, exts) -def _calculate_map_outs(srcs, out_dir = ".", root_dir = ".", source_map = True, preserve_jsx = False, emit_declaration_only = False): +def _calculate_map_outs(srcs, out_dir, root_dir, source_map, preserve_jsx, emit_declaration_only): if not source_map or emit_declaration_only: return [] diff --git a/ts/test/mock_transpiler.bzl b/ts/test/mock_transpiler.bzl index 454262c7..5f141558 100644 --- a/ts/test/mock_transpiler.bzl +++ b/ts/test/mock_transpiler.bzl @@ -53,7 +53,7 @@ def mock(name, srcs, source_map = False, **kwargs): srcs = srcs, # Calculate pre-declared outputs so they can be referenced as targets. # This is an optional transpiler feature aligning with the default tsc transpiler. - js_outs = lib.calculate_js_outs(srcs), - map_outs = lib.calculate_map_outs(srcs) if source_map else [], + js_outs = lib.calculate_js_outs(srcs, ".", ".", False, False, False, False), + map_outs = lib.calculate_map_outs(srcs, ".", ".", True, False, False) if source_map else [], **kwargs )