Skip to content

Commit aa69dad

Browse files
committed
build: use npm_package instead of js_library for the scheamtics npm package
1 parent fd6275e commit aa69dad

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/angular/ssr/schematics/BUILD.bazel

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
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.dev/license
55

6-
load("@aspect_rules_js//js:defs.bzl", "js_library")
7-
load("//tools:defaults.bzl", "jasmine_test", "ts_project")
6+
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")
87
load("//tools:ts_json_schema.bzl", "ts_json_schema")
98

109
licenses(["notice"])
@@ -90,13 +89,13 @@ jasmine_test(
9089
],
9190
)
9291

93-
# This target is used as nested_package in the main @angular/ssr package as a dep.
94-
js_library(
92+
# This package is intended to be combined into the main @angular/ssr package as a dep.
93+
npm_package(
9594
name = "pkg",
96-
srcs = [
95+
visibility = ["//packages/angular/ssr:__pkg__"],
96+
deps = [
9797
"package.json",
9898
":schematics",
9999
":schematics_assets",
100100
],
101-
visibility = ["//packages/angular/ssr:__pkg__"],
102101
)

0 commit comments

Comments
 (0)