Skip to content

Commit f4f7555

Browse files
crisbetommalerba
authored andcommitted
build: update buildifier and fix failures (#18997)
Our version of `@bazel/buildifier` is pretty old. These changes bump to the latest version and fix the new failures that showed up.
1 parent 80977f6 commit f4f7555

File tree

274 files changed

+561
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+561
-580
lines changed

BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//:rollup-globals.bzl", "ROLLUP_GLOBALS")
42
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS")
53
load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_ENTRYPOINTS")
64
load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS")
75
load("//src/material-experimental:config.bzl", "MATERIAL_EXPERIMENTAL_ENTRYPOINTS", "MATERIAL_EXPERIMENTAL_TESTING_ENTRYPOINTS")
86

7+
package(default_visibility = ["//visibility:public"])
8+
99
exports_files([
1010
"LICENSE",
1111
"scss-bundle.config.json",

guides/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//tools:defaults.bzl", "markdown_to_html")
42

3+
package(default_visibility = ["//visibility:public"])
4+
55
markdown_to_html(
66
name = "guides",
77
srcs = glob(["**/*.md"]),

integration/ts-compat/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("@bazel_skylib//rules:write_file.bzl", "write_file")
42
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_test")
53
load("//integration/ts-compat:import-all-entry-points.bzl", "generate_import_all_entry_points_file")
64

5+
package(default_visibility = ["//visibility:public"])
6+
77
write_file(
88
name = "import-all-entry-points-file",
99
out = "import-all-entry-points.ts",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@angular/platform-server": "^9.1.0",
7575
"@angular/router": "^9.1.0",
7676
"@bazel/bazelisk": "^1.3.0",
77-
"@bazel/buildifier": "^0.29.0",
77+
"@bazel/buildifier": "^2.2.1",
7878
"@bazel/ibazel": "^0.12.3",
7979
"@bazel/jasmine": "^1.5.0",
8080
"@bazel/karma": "^1.5.0",

src/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("@npm_bazel_typescript//:index.bzl", "ts_config")
42
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS")
53
load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS")
64
load("//tools/dgeni:index.bzl", "dgeni_api_docs")
75

6+
package(default_visibility = ["//visibility:public"])
7+
88
cdkApiEntryPoints = CDK_ENTRYPOINTS
99

1010
materialApiEntryPoints = MATERIAL_ENTRYPOINTS + MATERIAL_TESTING_ENTRYPOINTS

src/cdk-experimental/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_TARGETS")
42
load("//tools:defaults.bzl", "ng_package", "ts_library")
53

4+
package(default_visibility = ["//visibility:public"])
5+
66
ts_library(
77
name = "cdk-experimental",
88
srcs = glob(

src/cdk-experimental/column-resize/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//tools:defaults.bzl", "ng_module")
42

3+
package(default_visibility = ["//visibility:public"])
4+
55
ng_module(
66
name = "column-resize",
77
srcs = glob(

src/cdk-experimental/dialog/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite", "sass_binary")
42

3+
package(default_visibility = ["//visibility:public"])
4+
55
ng_module(
66
name = "dialog",
77
srcs = glob(

src/cdk-experimental/popover-edit/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
42

3+
package(default_visibility = ["//visibility:public"])
4+
55
ng_module(
66
name = "popover-edit",
77
srcs = glob(

src/cdk-experimental/scrolling/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package(default_visibility = ["//visibility:public"])
2-
31
load("//src/e2e-app:test_suite.bzl", "e2e_test_suite")
42
load("//tools:defaults.bzl", "ng_e2e_test_library", "ng_module", "ng_test_library", "ng_web_test_suite")
53

4+
package(default_visibility = ["//visibility:public"])
5+
66
ng_module(
77
name = "scrolling",
88
srcs = glob(

0 commit comments

Comments
 (0)