Skip to content

Commit 13b3766

Browse files
committed
build: remove unused file groupings from previously publishing @angular/build-tooling package (#2943)
PR Close #2943
1 parent 094cc8a commit 13b3766

File tree

12 files changed

+1
-117
lines changed

12 files changed

+1
-117
lines changed

BUILD.bazel

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
load("@aspect_rules_ts//ts:defs.bzl", rules_js_tsconfig = "ts_config")
2-
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary", "pkg_npm")
2+
load("@build_bazel_rules_nodejs//:index.bzl", "nodejs_binary")
33
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
44
load("@npm//@bazel/typescript:index.bzl", "ts_config")
55

6-
# BEGIN-INTERNAL
7-
load("//:package.bzl", "NPM_PACKAGE_SUBSTITUTIONS")
8-
96
npm_link_all_packages()
107

118
rules_js_tsconfig(
@@ -38,33 +35,3 @@ nodejs_binary(
3835
entry_point = ".yarn/releases/yarn-1.22.17.cjs",
3936
visibility = ["//bazel/integration/tests:__subpackages__"],
4037
)
41-
42-
package_group(
43-
name = "npm",
44-
packages = [
45-
"//",
46-
],
47-
)
48-
49-
pkg_npm(
50-
name = "npm_package",
51-
package_name = "@angular/build-tooling",
52-
srcs = [
53-
"BUILD.bazel",
54-
"package.json",
55-
"tsconfig.json",
56-
":index.bzl",
57-
"//bazel:static_files",
58-
"//lint-rules/stylelint:static_files",
59-
"//lint-rules/tslint:static_files",
60-
"//shared-scripts:static_files",
61-
],
62-
substitutions = NPM_PACKAGE_SUBSTITUTIONS,
63-
deps = [
64-
"//lint-rules/stylelint:lib",
65-
"//lint-rules/tslint:lib",
66-
],
67-
)
68-
# END-INTERNAL
69-
70-
exports_files(["tsconfig.json"])

bazel/BUILD.bazel

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,3 @@ ts_config(
1111
"//bazel:node_modules/@types/node",
1212
],
1313
)
14-
15-
filegroup(
16-
name = "static_files",
17-
srcs = [
18-
"BUILD.bazel",
19-
"expand_template.bzl",
20-
"extract_types.bzl",
21-
"filter_outputs.bzl",
22-
"//bazel/api-golden:files",
23-
"//bazel/constraints:files",
24-
"//bazel/git-toolchain:files",
25-
"//bazel/http-server:files",
26-
"//bazel/private:files",
27-
"//bazel/remote-execution:files",
28-
"//bazel/spec-bundling:files",
29-
"//bazel/ts_project:files",
30-
],
31-
visibility = ["//:npm"],
32-
)

bazel/api-golden/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,3 @@ ts_project(
2424
"//bazel:node_modules/typescript",
2525
],
2626
)
27-
28-
# Expose the sources in the dev-infra NPM package.
29-
filegroup(
30-
name = "files",
31-
srcs = glob(["*"]),
32-
)

bazel/constraints/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,3 @@ config_setting(
3131
"@platforms//cpu:x86_64",
3232
],
3333
)
34-
35-
# Make source files available for distribution via pkg_npm
36-
filegroup(
37-
name = "files",
38-
srcs = glob(["*"]),
39-
)

bazel/git-toolchain/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ load(":toolchain.bzl", "git_toolchain")
33

44
package(default_visibility = ["//visibility:public"])
55

6-
# Make source files available for distribution via pkg_npm
7-
filegroup(
8-
name = "files",
9-
srcs = glob(["*"]),
10-
)
11-
126
toolchain_type(name = "toolchain_type")
137

148
git_toolchain_alias(name = "current_git_toolchain")

bazel/http-server/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ package(default_visibility = ["//visibility:public"])
55

66
exports_files(["launcher_template.sh"])
77

8-
# Make source files available for distribution via pkg_npm
9-
filegroup(
10-
name = "files",
11-
srcs = glob(["*"]),
12-
)
13-
148
ts_project(
159
name = "server_lib",
1610
srcs = [

bazel/private/BUILD.bazel

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
package(default_visibility = ["//visibility:public"])
2-
3-
# Make source files available for distribution via pkg_npm
4-
filegroup(
5-
name = "files",
6-
srcs = glob(["*"]),
7-
)

bazel/remote-execution/BUILD.bazel

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,3 @@ platform(
3737
exec_properties = ENABLE_NETWORK,
3838
parents = [":platform"],
3939
)
40-
41-
filegroup(
42-
name = "files",
43-
srcs = [
44-
"BUILD.bazel",
45-
"index.bzl",
46-
],
47-
)

bazel/spec-bundling/BUILD.bazel

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
package(default_visibility = ["//visibility:public"])
2-
3-
# Make source files available for distribution via pkg_npm
4-
filegroup(
5-
name = "files",
6-
srcs = glob(["*"]),
7-
)

bazel/ts_project/BUILD.bazel

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
11
package(default_visibility = ["//visibility:public"])
2-
3-
# Make source files available for distribution
4-
filegroup(
5-
name = "files",
6-
srcs = glob(["*"]) + [
7-
"//bazel/ts_project/strict_deps:files",
8-
],
9-
)

0 commit comments

Comments
 (0)