Skip to content

Commit d746c4f

Browse files
sbarfurthdevversion
authored andcommitted
Add testonly parameter to ng_project_config function
1 parent e10eecc commit d746c4f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ng_project/config/index.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
22
load("//src/ng_project/config:config.bzl", _ng_project_config = "ng_project_config")
33

4-
def ng_project_config(name, tsconfig, angular_compiler_options):
4+
def ng_project_config(name, tsconfig, angular_compiler_options, testonly = False):
55
# Create the angularCompilerOptions specific tsconfig file.
66
_ng_project_config(
77
name = "%s_ng_compiler_options" % name,
88
angular_compiler_options = angular_compiler_options,
99
tsconfig = tsconfig,
10+
testonly = testonly,
1011
)
1112

1213
# Create the new tsconfig target using the newly created config to extend the provided
@@ -15,4 +16,5 @@ def ng_project_config(name, tsconfig, angular_compiler_options):
1516
name = name,
1617
src = ":%s_ng_compiler_options" % name,
1718
deps = [tsconfig],
19+
testonly = testonly,
1820
)

0 commit comments

Comments
 (0)