build: update to rules_nodejs 1.1.0 (#34736)
This release resolves the bootstrap require patching issue with jasmine_node_test. Require patches are now included before any bootstrap scripts. PR Close #34736
This commit is contained in:

committed by
Matias Niemelä

parent
6174dffc2a
commit
436e7388c3
@ -291,16 +291,11 @@ 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 = [
|
||||
# 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", [])
|
||||
templated_args = 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