refactor: handle breaking changes in rules_nodejs 1.0.0 (#34736)

The major one that affects the angular repo is the removal of the bootstrap attribute in nodejs_binary, nodejs_test and jasmine_node_test in favor of using templated_args --node_options=--require=/path/to/script. The side-effect of this is that the bootstrap script does not get the require.resolve patches with explicitly loading the targets _loader.js file.

PR Close #34736
This commit is contained in:
Greg Magolan
2019-12-28 18:14:36 -08:00
committed by Matias Niemelä
parent ba662fa7a9
commit dcff76e8b9
70 changed files with 319 additions and 133 deletions

View File

@ -61,10 +61,10 @@ ts_library(
jasmine_node_test(
name = "render3",
bootstrap = [
"angular/packages/core/test/render3/load_domino",
],
templated_args = ["--node_options=--require=$(rlocation $(location :domino_es5))"],
deps = [
":domino",
":domino_es5",
":render3_node_lib",
"//packages/zone.js/lib",
],