From 60b7c13bddcb9102ab8f0438c30481526a655350 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 6 Jun 2024 09:05:23 +0000 Subject: [PATCH] refactor: format bazel build files The formatter does not automatically fix these failures. --- packages/angular/pwa/BUILD.bazel | 7 ++++--- packages/angular_devkit/build_webpack/BUILD.bazel | 1 - packages/angular_devkit/schematics_cli/BUILD.bazel | 11 ++++++----- packages/schematics/angular/BUILD.bazel | 11 ++++++----- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/angular/pwa/BUILD.bazel b/packages/angular/pwa/BUILD.bazel index 54035328cba3..5a8a3ecd3cca 100644 --- a/packages/angular/pwa/BUILD.bazel +++ b/packages/angular/pwa/BUILD.bazel @@ -18,10 +18,11 @@ ts_library( "pwa/index.ts", "//packages/angular/pwa:pwa/schema.ts", ], - data = glob( + data = [ + "collection.json", + "pwa/schema.json", + ] + glob( include = [ - "collection.json", - "pwa/schema.json", "pwa/files/**/*", ], ), diff --git a/packages/angular_devkit/build_webpack/BUILD.bazel b/packages/angular_devkit/build_webpack/BUILD.bazel index 70dd2db27ae1..e03c86c07be1 100644 --- a/packages/angular_devkit/build_webpack/BUILD.bazel +++ b/packages/angular_devkit/build_webpack/BUILD.bazel @@ -57,7 +57,6 @@ ts_library( testonly = True, srcs = glob( include = [ - "src/test-utils.ts", "src/**/*_spec.ts", ], ), diff --git a/packages/angular_devkit/schematics_cli/BUILD.bazel b/packages/angular_devkit/schematics_cli/BUILD.bazel index d9fdcfb5137a..064dba530fc1 100644 --- a/packages/angular_devkit/schematics_cli/BUILD.bazel +++ b/packages/angular_devkit/schematics_cli/BUILD.bazel @@ -31,14 +31,15 @@ ts_library( "//packages/angular_devkit/schematics_cli:schematic/schema.ts", # @external_end ], - data = glob( + data = [ + "blank/schema.json", + "collection.json", + "package.json", + "schematic/schema.json", + ] + glob( include = [ - "collection.json", - "package.json", - "blank/schema.json", "blank/project-files/**/*", "blank/schematic-files/**/*", - "schematic/schema.json", "schematic/files/**/*", ], ), diff --git a/packages/schematics/angular/BUILD.bazel b/packages/schematics/angular/BUILD.bazel index 132f37faf949..f75ebae5bbda 100644 --- a/packages/schematics/angular/BUILD.bazel +++ b/packages/schematics/angular/BUILD.bazel @@ -58,12 +58,13 @@ ts_library( "//packages/schematics/angular:" + src.replace(".json", ".ts") for (src, _) in ALL_SCHEMA_TARGETS ], - data = glob( + data = [ + "collection.json", + "migrations/migration-collection.json", + "package.json", + "utility/latest-versions/package.json", + ] + glob( include = [ - "collection.json", - "package.json", - "utility/latest-versions/package.json", - "migrations/migration-collection.json", "*/schema.json", "*/files/**/*", "*/other-files/**/*",