Skip to content

Commit

Permalink
Adds load visibility to stamping tools and updates to match newer con…
Browse files Browse the repository at this point in the history
…ventions.

Refs #67.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent 686f7c5 commit 71876c4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load("@bazel_skylib//lib:dicts.bzl", "dicts")
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_prerender_npm//:defs.bzl", "npm_link_all_packages")
load("//tools/publish:defs.bzl", "npm_publish")
load("//tools/stamping:stamp_package.bzl", "stamp_package")
load("//tools/stamping:defs.bzl", "stamp_package")
load("//tools/typescript:defs.bzl", "types_only")
load("//:index.bzl", "link_prerender_component", "prerender_component")

Expand Down
2 changes: 1 addition & 1 deletion packages/declarative_shadow_dom/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ load(
load("//tools/jasmine:defs.bzl", "jasmine_node_test")
load("//tools/typescript:defs.bzl", "ts_project")
load("//tools/publish:defs.bzl", "npm_publish")
load("//tools/stamping:stamp_package.bzl", "stamp_package")
load("//tools/stamping:defs.bzl", "stamp_package")

prerender_component_publish_files(
name = "declarative_shadow_dom_publish_files",
Expand Down
6 changes: 6 additions & 0 deletions tools/stamping/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ load(":stamp_package.bzl", "stamp_package")

exports_files(["stamp.jq"], visibility = ["//visibility:public"])

bzl_library(
name = "defs",
srcs = ["defs.bzl"],
deps = [":stamp_package"],
)

bzl_library(
name = "stamp_package",
srcs = ["stamp_package.bzl"],
Expand Down
5 changes: 5 additions & 0 deletions tools/stamping/defs.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
load(":stamp_package.bzl", _stamp_package = "stamp_package")

visibility("public")

stamp_package = _stamp_package
2 changes: 2 additions & 0 deletions tools/stamping/stamp_package.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
load("@aspect_bazel_lib//lib:jq.bzl", "jq")
load("@bazel_skylib//rules:write_file.bzl", "write_file")

visibility("private")

def stamp_package(
name,
package = "package.json",
Expand Down

0 comments on commit 71876c4

Please sign in to comment.