1- load ("//tools:defaults.bzl" , "jasmine_node_test" , "karma_web_test_suite" , "ng_module" , "nodejs_binary" , "npm_package_bin" , "ts_library" )
1+ load ("//tools:defaults.bzl" , "jasmine_node_test" , "karma_web_test_suite" , "ng_module" , "nodejs_binary" , "npm_package_bin" )
2+ load ("//tools:defaults2.bzl" , "ts_project" )
23
34package (default_visibility = ["//visibility:private" ])
45
@@ -13,20 +14,21 @@ TEST_DEPS = [
1314 "//packages/core/testing" ,
1415 "//packages/platform-browser" ,
1516 "//packages/core/primitives/signals" ,
16- "@npm//rxjs" ,
1717]
1818
19- ts_library (
19+ ts_project (
2020 name = "test_compiler_lib" ,
2121 testonly = True ,
2222 srcs = ["authoring_test_compiler.ts" ],
23- deps = [
23+ interop_deps = [
2424 "//packages/compiler-cli" ,
2525 "//packages/compiler-cli/src/ngtsc/imports" ,
2626 "//packages/compiler-cli/src/ngtsc/partial_evaluator" ,
2727 "//packages/compiler-cli/src/ngtsc/reflection" ,
2828 "//packages/compiler-cli/src/ngtsc/transform/jit" ,
29- "@npm//typescript" ,
29+ ],
30+ deps = [
31+ "//:node_modules/typescript" ,
3032 ],
3133)
3234
@@ -37,7 +39,7 @@ nodejs_binary(
3739 ":test_compiler_lib" ,
3840 "//packages:package_json" ,
3941 ],
40- entry_point = ":authoring_test_compiler.ts " ,
42+ entry_point = ":authoring_test_compiler.js " ,
4143)
4244
4345npm_package_bin (
@@ -49,18 +51,25 @@ npm_package_bin(
4951 tool = ":test_compiler" ,
5052)
5153
52- ts_library (
54+ ts_project (
5355 name = "test_jit_lib" ,
5456 testonly = True ,
5557 srcs = ["transformed_%s" % file for file in TEST_FILES ],
56- deps = TEST_DEPS ,
58+ interop_deps = TEST_DEPS ,
59+ deps = [
60+ # TODO: Only rely on `TEST_DEPS`. This should be removed during `rules_js` migration.
61+ "//:node_modules/rxjs" ,
62+ ],
5763)
5864
5965ng_module (
6066 name = "test_lib" ,
6167 testonly = True ,
6268 srcs = TEST_FILES ,
63- deps = TEST_DEPS ,
69+ deps = TEST_DEPS + [
70+ # TODO: Only rely on `TEST_DEPS`. This should be removed during `rules_js` migration.
71+ "@npm//rxjs" ,
72+ ],
6473)
6574
6675jasmine_node_test (
0 commit comments