mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
build: migrate remaining usage of pkg_npm
to rules_js
This is necessary so that we can delete the `pkg_npm` macro and fully leverage the `rules_js` variant.
This commit is contained in:
parent
01ea33e372
commit
83b9d33946
@ -53,7 +53,7 @@ ng_package(
|
|||||||
"../../third_party/beasties",
|
"../../third_party/beasties",
|
||||||
],
|
],
|
||||||
nested_packages = [
|
nested_packages = [
|
||||||
"//packages/angular/ssr/schematics:npm_package",
|
"//packages/angular/ssr/schematics:pkg",
|
||||||
],
|
],
|
||||||
deps = [
|
deps = [
|
||||||
":ssr",
|
":ssr",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Use of this source code is governed by an MIT-style license that can be
|
# Use of this source code is governed by an MIT-style license that can be
|
||||||
# found in the LICENSE file at https://angular.dev/license
|
# found in the LICENSE file at https://angular.dev/license
|
||||||
|
|
||||||
load("//tools:defaults.bzl", "pkg_npm")
|
load("@aspect_rules_js//npm:defs.bzl", "npm_package")
|
||||||
load("//tools:defaults2.bzl", "jasmine_test", "ts_project")
|
load("//tools:defaults2.bzl", "jasmine_test", "ts_project")
|
||||||
load("//tools:ts_json_schema.bzl", "ts_json_schema")
|
load("//tools:ts_json_schema.bzl", "ts_json_schema")
|
||||||
|
|
||||||
@ -57,7 +57,6 @@ ts_project(
|
|||||||
"//packages/angular/ssr/schematics:" + src.replace(".json", ".ts")
|
"//packages/angular/ssr/schematics:" + src.replace(".json", ".ts")
|
||||||
for (src, _) in ALL_SCHEMA_TARGETS
|
for (src, _) in ALL_SCHEMA_TARGETS
|
||||||
],
|
],
|
||||||
data = [":schematics_assets"],
|
|
||||||
module_name = "@angular/ssr/schematics",
|
module_name = "@angular/ssr/schematics",
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/angular/ssr:node_modules/@angular-devkit/schematics",
|
"//packages/angular/ssr:node_modules/@angular-devkit/schematics",
|
||||||
@ -86,16 +85,18 @@ ts_project(
|
|||||||
jasmine_test(
|
jasmine_test(
|
||||||
name = "ssr_schematics_test",
|
name = "ssr_schematics_test",
|
||||||
data = [
|
data = [
|
||||||
|
":schematics_assets",
|
||||||
":ssr_schematics_test_lib_rjs",
|
":ssr_schematics_test_lib_rjs",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
# This package is intended to be combined into the main @angular/ssr package as a dep.
|
# This package is intended to be combined into the main @angular/ssr package as a dep.
|
||||||
pkg_npm(
|
npm_package(
|
||||||
name = "npm_package",
|
name = "pkg",
|
||||||
pkg_json = None,
|
srcs = [
|
||||||
visibility = ["//packages/angular/ssr:__pkg__"],
|
"package.json",
|
||||||
deps = [
|
":schematics_assets",
|
||||||
":schematics",
|
":schematics_rjs",
|
||||||
],
|
],
|
||||||
|
visibility = ["//packages/angular/ssr:__pkg__"],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user