| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  | load("//tools:defaults.bzl", "jasmine_node_test", "ts_library") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ts_library( | 
					
						
							| 
									
										
										
										
											2020-11-04 12:28:37 -08:00
										 |  |  |     name = "legacy_lib", | 
					
						
							| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  |     testonly = True, | 
					
						
							|  |  |  |     srcs = glob(["*.ts"]), | 
					
						
							|  |  |  |     deps = [ | 
					
						
							| 
									
										
										
										
											2020-08-12 16:13:02 -07:00
										 |  |  |         "//packages/compiler", | 
					
						
							| 
									
										
										
										
											2021-01-13 14:52:29 -08:00
										 |  |  |         "//packages/compiler-cli/src/ngtsc/core:api", | 
					
						
							|  |  |  |         "//packages/compiler-cli/src/ngtsc/diagnostics", | 
					
						
							| 
									
										
										
										
											2020-04-29 15:52:17 -07:00
										 |  |  |         "//packages/language-service/ivy", | 
					
						
							| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  |         "@npm//typescript", | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | jasmine_node_test( | 
					
						
							| 
									
										
										
										
											2020-11-04 12:28:37 -08:00
										 |  |  |     name = "legacy", | 
					
						
							| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  |     data = [ | 
					
						
							|  |  |  |         # Note that we used to depend on the npm_package of common, core, and | 
					
						
							|  |  |  |         # forms, but this is no longer the case. We did it for View Engine | 
					
						
							|  |  |  |         # because we wanted to load the flat dts, which is only available in the | 
					
						
							|  |  |  |         # npm_package. Ivy does not currently produce flat dts, so we might | 
					
						
							|  |  |  |         # as well just depend on the outputs of ng_module. | 
					
						
							|  |  |  |         "//packages/common", | 
					
						
							|  |  |  |         "//packages/core", | 
					
						
							|  |  |  |         "//packages/forms", | 
					
						
							|  |  |  |         "//packages/language-service/test:project", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  |     tags = [ | 
					
						
							|  |  |  |         "ivy-only", | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  |     deps = [ | 
					
						
							| 
									
										
										
										
											2020-11-04 12:28:37 -08:00
										 |  |  |         ":legacy_lib", | 
					
						
							| 
									
										
										
										
											2020-04-30 15:48:20 -07:00
										 |  |  |     ], | 
					
						
							|  |  |  | ) |