1
- load ("@aspect_rules_js//npm:defs.bzl" , "npm_package" )
2
1
load ("@devinfra//bazel/api-golden:index_rjs.bzl" , "api_golden_test_npm_package" )
3
2
load ("@npm2//:defs.bzl" , "npm_link_all_packages" )
4
3
load ("@rules_pkg//:pkg.bzl" , "pkg_tar" )
@@ -40,8 +39,7 @@ ts_project(
40
39
)
41
40
42
41
ng_package (
43
- name = "angular_package" ,
44
- package_name = "@angular/ssr" ,
42
+ name = "npm_package" ,
45
43
srcs = [
46
44
":package.json" ,
47
45
"//packages/angular/ssr/third_party/beasties:beasties_bundled" ,
@@ -53,10 +51,21 @@ ng_package(
53
51
],
54
52
nested_packages = [
55
53
"//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" ,
56
56
],
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" ],
57
66
deps = [
58
- ":ssr_legacy " ,
59
- "//packages/angular/ssr/node:node_legacy " ,
67
+ ":ssr " ,
68
+ "//packages/angular/ssr/node" ,
60
69
],
61
70
)
62
71
@@ -69,16 +78,6 @@ pkg_tar(
69
78
tags = ["manual" ],
70
79
)
71
80
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
-
82
81
alias (
83
82
name = "pkg" ,
84
83
actual = ":npm_package" ,
0 commit comments