1- load ("@aspect_rules_js//npm:defs.bzl" , "npm_package" )
21load ("@devinfra//bazel/api-golden:index_rjs.bzl" , "api_golden_test_npm_package" )
32load ("@npm2//:defs.bzl" , "npm_link_all_packages" )
43load ("@rules_pkg//:pkg.bzl" , "pkg_tar" )
@@ -40,8 +39,7 @@ ts_project(
4039)
4140
4241ng_package (
43- name = "angular_package" ,
44- package_name = "@angular/ssr" ,
42+ name = "npm_package" ,
4543 srcs = [
4644 ":package.json" ,
4745 "//packages/angular/ssr/third_party/beasties:beasties_bundled" ,
@@ -53,10 +51,21 @@ ng_package(
5351 ],
5452 nested_packages = [
5553 "//packages/angular/ssr/schematics:pkg" ,
54+ # Included directly as the generated types reference the types file in this location.
55+ "//packages/angular/ssr/third_party/beasties:beasties_dts" ,
5656 ],
57+ package = "@angular/ssr" ,
58+ rollup_runtime_deps = [
59+ "//:node_modules/@rollup/plugin-commonjs" ,
60+ "//:node_modules/@rollup/plugin-node-resolve" ,
61+ "//:node_modules/magic-string" ,
62+ "//:node_modules/rollup-plugin-dts" ,
63+ "//:node_modules/rollup-plugin-sourcemaps2" ,
64+ ],
65+ tags = ["release-package" ],
5766 deps = [
58- ":ssr_legacy " ,
59- "//packages/angular/ssr/node:node_legacy " ,
67+ ":ssr " ,
68+ "//packages/angular/ssr/node" ,
6069 ],
6170)
6271
@@ -69,16 +78,6 @@ pkg_tar(
6978 tags = ["manual" ],
7079)
7180
72- # TODO: Replace when `ng_package` creates a valid `rules_js`-compliant npm package.
73- npm_package (
74- name = "npm_package" ,
75- srcs = [":angular_package" ],
76- replace_prefixes = {
77- "angular_package/" : "" ,
78- },
79- tags = ["release-package" ],
80- )
81-
8281alias (
8382 name = "pkg" ,
8483 actual = ":npm_package" ,
0 commit comments