build: support new ng_project rule (#61275)

Supports the `ng_project` rule with the local compiler-cli version
from HEAD.

PR Close #61275
This commit is contained in:
Paul Gschwendtner
2025-05-09 16:42:03 +00:00
committed by Jessica Janiuk
parent a7b58e3c5a
commit 397f9987ef
12 changed files with 2543 additions and 2441 deletions
+11
View File
@@ -1,4 +1,5 @@
load("//tools:defaults.bzl", "ng_package", "ts_library", "tsec_test")
load("//tools:defaults2.bzl", "npm_package")
package(default_visibility = ["//visibility:public"])
@@ -43,6 +44,16 @@ ng_package(
],
)
# TODO(devversion): Temporary early `npm_package` for making compiler usable in `rules_angular`.
# Long-term, `pkg_npm` will be migrated to `npm_package` in general.
npm_package(
name = "pkg",
srcs = [":npm_package"],
replace_prefixes = {
"npm_package/": "",
},
)
filegroup(
name = "files_for_docgen",
srcs = glob([