| 
									
										
										
										
											2017-06-02 09:43:52 -07:00
										 |  |  | package(default_visibility = ["//visibility:public"]) | 
					
						
							|  |  |  | exports_files(["tsconfig.json"]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # This rule belongs in node_modules/BUILD | 
					
						
							|  |  |  | # It's here as a workaround for | 
					
						
							|  |  |  | # https://github.com/bazelbuild/bazel/issues/374#issuecomment-296217940 | 
					
						
							|  |  |  | filegroup( | 
					
						
							|  |  |  |     name = "node_modules", | 
					
						
							| 
									
										
										
										
											2017-08-29 22:09:55 -07:00
										 |  |  |     # Performance workaround: list individual files | 
					
						
							|  |  |  |     # Reduces the number of files as inputs to nodejs_binary: | 
					
						
							|  |  |  |     # bazel query "deps(:node_modules)" | wc -l | 
					
						
							|  |  |  |     # This won't scale in the general case. | 
					
						
							|  |  |  |     # TODO(alexeagle): figure out what to do | 
					
						
							|  |  |  |     srcs = glob(["/".join(["node_modules", pkg, "**", ext]) for pkg in [ | 
					
						
							|  |  |  |         "typescript", | 
					
						
							|  |  |  |         "zone.js", | 
					
						
							|  |  |  |         "rxjs", | 
					
						
							|  |  |  |         "@types", | 
					
						
							|  |  |  |         "tsickle", | 
					
						
							|  |  |  |         "hammerjs", | 
					
						
							|  |  |  |         "protobufjs", | 
					
						
							|  |  |  |         "bytebuffer", | 
					
						
							|  |  |  |         "reflect-metadata", | 
					
						
							|  |  |  |         "minimist", | 
					
						
							|  |  |  |     ] for ext in [ | 
					
						
							|  |  |  |         "*.js", | 
					
						
							|  |  |  |         "*.json", | 
					
						
							|  |  |  |         "*.d.ts", | 
					
						
							|  |  |  |     ]]), | 
					
						
							| 
									
										
										
										
											2017-06-02 09:43:52 -07:00
										 |  |  | ) |