Skip to content

Commit 898fb5e

Browse files
filipesilvadgp1130
authored andcommitted
build: add missing npm_package_archive targets
1 parent bae240e commit 898fb5e

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

packages/angular/cli/BUILD.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
# Use of this source code is governed by an MIT-style license that can be
44
# found in the LICENSE file at https://angular.io/license
55

6+
licenses(["notice"]) # MIT
7+
8+
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
69
load("@npm_bazel_typescript//:index.bzl", "ts_library")
710
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
11+
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
812
load("//tools:ts_json_schema.bzl", "ts_json_schema")
913

1014
licenses(["notice"]) # MIT
@@ -250,3 +254,18 @@ jasmine_node_test(
250254
name = "angular-cli_test",
251255
srcs = [":angular-cli_test_lib"],
252256
)
257+
258+
pkg_npm(
259+
name = "npm_package",
260+
deps = [
261+
":angular-cli",
262+
],
263+
)
264+
265+
pkg_tar(
266+
name = "npm_package_archive",
267+
srcs = [":npm_package"],
268+
extension = "tar.gz",
269+
strip_prefix = "./npm_package",
270+
tags = ["manual"],
271+
)

packages/schematics/angular/BUILD.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
# Use of this source code is governed by an MIT-style license that can be
44
# found in the LICENSE file at https://angular.io/license
55

6+
licenses(["notice"]) # MIT
7+
8+
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
69
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
710
load("@npm_bazel_typescript//:index.bzl", "ts_library")
11+
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
812
load("//tools:ts_json_schema.bzl", "ts_json_schema")
913

1014
licenses(["notice"]) # MIT
@@ -122,3 +126,18 @@ jasmine_node_test(
122126
"@npm//source-map",
123127
],
124128
)
129+
130+
pkg_npm(
131+
name = "npm_package",
132+
deps = [
133+
":angular",
134+
],
135+
)
136+
137+
pkg_tar(
138+
name = "npm_package_archive",
139+
srcs = [":npm_package"],
140+
extension = "tar.gz",
141+
strip_prefix = "./npm_package",
142+
tags = ["manual"],
143+
)

packages/schematics/update/BUILD.bazel

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
# Use of this source code is governed by an MIT-style license that can be
44
# found in the LICENSE file at https://angular.io/license
55

6+
licenses(["notice"]) # MIT
7+
8+
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
69
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
710
load("@npm_bazel_typescript//:index.bzl", "ts_library")
11+
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
812
load("//tools:ts_json_schema.bzl", "ts_json_schema")
913

1014
licenses(["notice"]) # MIT
@@ -92,3 +96,18 @@ jasmine_node_test(
9296
"@npm//source-map",
9397
],
9498
)
99+
100+
pkg_npm(
101+
name = "npm_package",
102+
deps = [
103+
":update",
104+
],
105+
)
106+
107+
pkg_tar(
108+
name = "npm_package_archive",
109+
srcs = [":npm_package"],
110+
extension = "tar.gz",
111+
strip_prefix = "./npm_package",
112+
tags = ["manual"],
113+
)

0 commit comments

Comments
 (0)