mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: add a before-all-other bootstrap script that patches require (#34736)
This removes the churn in the existing bootstrap scripts. PR Close #34736
This commit is contained in:
committed by
Matias Niemelä
parent
449a9fccc2
commit
8560f016cd
+6
-1
@@ -268,11 +268,16 @@ def jasmine_node_test(bootstrap = [], **kwargs):
|
||||
"@npm//source-map-support",
|
||||
"@npm//tslib",
|
||||
"@npm//xhr2",
|
||||
"//tools/testing:bazel_patch_require.js",
|
||||
]
|
||||
configuration_env_vars = kwargs.pop("configuration_env_vars", []) + [
|
||||
"angular_ivy_enabled",
|
||||
]
|
||||
templated_args = kwargs.pop("templated_args", [])
|
||||
templated_args = [
|
||||
# bazel_patch_require.js must be first
|
||||
# TODO(gregmagolan): remove this once linker has been applied to nodejs_binary targets by default in rules_nodejs
|
||||
"--node_options=--require=$(rlocation $(location //tools/testing:bazel_patch_require.js))",
|
||||
] + kwargs.pop("templated_args", [])
|
||||
for label in bootstrap:
|
||||
deps += [label]
|
||||
templated_args += ["--node_options=--require=$(rlocation $(location %s))" % label]
|
||||
|
||||
Reference in New Issue
Block a user