build: upgrade to rules_nodejs 1.0.0 (first stable release) (#34589)
Brings in the fix for stamping which was preventing many targets from getting cached. PR Close #34589
This commit is contained in:
@ -160,7 +160,7 @@ def ng_package(name, readme_md = None, license_banner = None, deps = [], **kwarg
|
||||
deps = deps,
|
||||
readme_md = readme_md,
|
||||
license_banner = license_banner,
|
||||
replacements = PKG_GROUP_REPLACEMENTS,
|
||||
substitutions = PKG_GROUP_REPLACEMENTS,
|
||||
ng_packager = _INTERNAL_NG_PACKAGE_PACKAGER,
|
||||
terser_config_file = _INTERNAL_NG_PACKAGE_DEFALUT_TERSER_CONFIG_FILE,
|
||||
rollup_config_tmpl = _INTERNAL_NG_PACKAGE_DEFAULT_ROLLUP_CONFIG_TMPL,
|
||||
@ -168,11 +168,11 @@ def ng_package(name, readme_md = None, license_banner = None, deps = [], **kwarg
|
||||
**kwargs
|
||||
)
|
||||
|
||||
def npm_package(name, replacements = {}, **kwargs):
|
||||
def pkg_npm(name, substitutions = {}, **kwargs):
|
||||
"""Default values for npm_package"""
|
||||
_npm_package(
|
||||
_pkg_npm(
|
||||
name = name,
|
||||
replacements = dict(replacements, **PKG_GROUP_REPLACEMENTS),
|
||||
substitutions = dict(substitutions, **PKG_GROUP_REPLACEMENTS),
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# BEGIN-INTERNAL
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "npm_package")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "pkg_npm")
|
||||
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
|
||||
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
||||
|
||||
@ -29,7 +29,7 @@ genrule(
|
||||
cmd = "cp $< $@",
|
||||
)
|
||||
|
||||
npm_package(
|
||||
pkg_npm(
|
||||
name = "ts-api-guardian",
|
||||
srcs = [
|
||||
"BUILD.bazel",
|
||||
@ -38,7 +38,7 @@ npm_package(
|
||||
"index.bzl",
|
||||
"package.json",
|
||||
],
|
||||
replacements = {
|
||||
substitutions = {
|
||||
"@angular//tools/ts-api-guardian:bin": "@npm_ts_api_guardian//:bin",
|
||||
"@angular//tools/ts-api-guardian:lib": "@npm//ts-api-guardian",
|
||||
"angular/tools/ts-api-guardian/": "npm_ts_api_guardian/",
|
||||
|
Reference in New Issue
Block a user