Updates to the latest version of `rules_nodejs` that supports the most recent NodeJS lts version v14.16.1. Additionally the latest version of `rules_nodejs` provides [a package for runfile resolution](https://github.com/bazelbuild/rules_nodejs/pull/2568) w/ types that we can leverage. PR Close #41599
		
			
				
	
	
		
			45 lines
		
	
	
		
			931 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			931 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
 | |
| 
 | |
| package(default_visibility = ["//visibility:public"])
 | |
| 
 | |
| ts_library(
 | |
|     name = "lib",
 | |
|     testonly = True,
 | |
|     srcs = glob(
 | |
|         ["**/*.ts"],
 | |
|         exclude = [
 | |
|             "**/*_spec.ts",
 | |
|             "**/*_spec",
 | |
|         ],
 | |
|     ),
 | |
|     deps = [
 | |
|         "//packages:types",
 | |
|         "@npm//@bazel/runfiles",
 | |
|         "@npm//typescript",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| ts_library(
 | |
|     name = "test_lib",
 | |
|     testonly = 1,
 | |
|     srcs = glob(
 | |
|         ["**/*_spec.ts"],
 | |
|         exclude = ["symbol_extractor_spec/**"],
 | |
|     ),
 | |
|     deps = [
 | |
|         ":lib",
 | |
|         "//packages:types",
 | |
|         "@npm//typescript",
 | |
|     ],
 | |
| )
 | |
| 
 | |
| jasmine_node_test(
 | |
|     name = "test",
 | |
|     data = glob(["symbol_extractor_spec/**"]),
 | |
|     deps = [
 | |
|         ":test_lib",
 | |
|         "//tools/symbol-extractor/symbol_extractor_spec:es2015_class_output",
 | |
|         "//tools/symbol-extractor/symbol_extractor_spec:fixtures",
 | |
|     ],
 | |
| )
 |