Skip to content

Commit

Permalink
build: ensure common substitutions are replaced on all packages by de…
Browse files Browse the repository at this point in the history
…fault
  • Loading branch information
mattem authored and alexeagle committed Mar 7, 2021
1 parent 8e7c731 commit 7f81e5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/defaults.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ def pkg_npm(**kwargs):
pkg = native.package_name().split("/")[-1]

# Default substitutions to scrub things like skylib references
substitutions = dict(kwargs.pop("substitutions", _COMMON_REPLACEMENTS), **{
default_substitutions = dict(_COMMON_REPLACEMENTS, **{
"//packages/%s" % pkg: "//@bazel/%s" % pkg,
})
substitutions = dict(kwargs.pop("substitutions", {}), **default_substitutions)

stamped_substitutions = dict(substitutions, **{
"0.0.0-PLACEHOLDER": "{STABLE_BUILD_SCM_VERSION}",
})
Expand Down

0 comments on commit 7f81e5d

Please sign in to comment.