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:

committed by
Matias Niemelä

parent
ba662fa7a9
commit
dcff76e8b9
@ -15,7 +15,6 @@ ts_library(
|
||||
jasmine_node_test(
|
||||
name = "check_types",
|
||||
timeout = "long", # 900 seconds
|
||||
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
||||
data = [
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
@ -25,10 +24,12 @@ jasmine_node_test(
|
||||
# compiler has its own typechecking implementation and tests.
|
||||
"no-ivy-aot",
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":check_types_lib",
|
||||
"//packages/core",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
||||
@ -45,11 +46,10 @@ ts_library(
|
||||
|
||||
jasmine_node_test(
|
||||
name = "typescript_version",
|
||||
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
||||
data = [
|
||||
],
|
||||
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
||||
deps = [
|
||||
":typescript_version_lib",
|
||||
"//tools/testing:node",
|
||||
"//tools/testing:node_es5",
|
||||
],
|
||||
)
|
||||
|
Reference in New Issue
Block a user