Skip to content

Commit 6103b74

Browse files
authored
build: clean up uses of integers as booleans in Bazel files (#20388)
Fixes a few places that are inconsistent by using `1` instead of `True`. Also fixes one place where we were using the incorrect wording in a license header.
1 parent 6fbf142 commit 6103b74

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/cdk/coercion/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ts_library(
1616

1717
ts_library(
1818
name = "unit_test_sources",
19-
testonly = 1,
19+
testonly = True,
2020
srcs = glob(
2121
["**/*.spec.ts"],
2222
exclude = ["**/*.e2e.spec.ts"],

src/cdk/keycodes/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ng_module(
1717

1818
ts_library(
1919
name = "unit_test_sources",
20-
testonly = 1,
20+
testonly = True,
2121
srcs = glob(
2222
["**/*.spec.ts"],
2323
exclude = ["**/*.e2e.spec.ts"],

src/circular-deps-test.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright Google Inc. All Rights Reserved.
3+
* Copyright Google LLC All Rights Reserved.
44
*
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license

src/google-maps/testing/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package(default_visibility = ["//visibility:public"])
44

55
ts_library(
66
name = "testing",
7-
testonly = 1,
7+
testonly = True,
88
srcs = glob(["**/*.ts"]),
99
deps = [
1010
"//src/google-maps",

tools/defaults.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def ng_test_library(deps = [], tsconfig = None, **kwargs):
136136
] + deps
137137

138138
ts_library(
139-
testonly = 1,
139+
testonly = True,
140140
deps = local_deps,
141141
**kwargs
142142
)
@@ -149,7 +149,7 @@ def ng_e2e_test_library(deps = [], tsconfig = None, **kwargs):
149149
] + deps
150150

151151
ts_library(
152-
testonly = 1,
152+
testonly = True,
153153
deps = local_deps,
154154
**kwargs
155155
)

0 commit comments

Comments
 (0)