build: fix ts-api-guardian does not work on windows w/ bazel (#26761)
* Fixes that the `ts-api-guardian` package does not work on Windows with Bazel. This is because `ts-api-guardian` does not resolve the runfiles through theNodeJS `require` function that properly handles runfiles within Bazel. PR Close #26761
This commit is contained in:

committed by
Matias Niemelä

parent
0e1cceed50
commit
9ad54d74d2
@ -16,7 +16,7 @@ def generate_targets(golden_files):
|
||||
[package_name, entry_point_tail] = entry_point.split("/", 1)
|
||||
directory_name = entry_point_tail.split("/")[-1]
|
||||
target_suffix = "/" + entry_point_tail if package_name != entry_point_tail else ""
|
||||
actual_file = "packages/%s%s/%s.d.ts" % (package_name, target_suffix, directory_name)
|
||||
actual_file = "angular/packages/%s%s/%s.d.ts" % (package_name, target_suffix, directory_name)
|
||||
label_name = package_name + target_suffix.replace("/", "_")
|
||||
|
||||
ts_api_guardian_test(
|
||||
@ -25,7 +25,7 @@ def generate_targets(golden_files):
|
||||
data = [golden_file] + [
|
||||
"//packages/%s:%s" % (package_name + target_suffix, directory_name),
|
||||
],
|
||||
golden = "tools/public_api_guard/%s" % golden_file,
|
||||
golden = "angular/tools/public_api_guard/%s" % golden_file,
|
||||
tags = [
|
||||
"fixme-ivy-aot", # ivy no longer emits generated index file
|
||||
"no-ivy-jit", # we will not ship JIT compiled packages to npm
|
||||
|
Reference in New Issue
Block a user