Revert "build: add a before-all-other bootstrap script that patches require (#34589)" (#34730)

This reverts commit c3e8439954.

PR Close #34730
This commit is contained in:
atscott
2020-01-10 13:39:40 -08:00
parent 66fbc2a1b8
commit b788c36909
10 changed files with 43 additions and 34 deletions

View File

@ -268,16 +268,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]