Skip to content

Commit

Permalink
Publishes CSS build rules.
Browse files Browse the repository at this point in the history
Forgot to publish these to the actual NPM repository which is necessary to use them from an external workspace. With this change the `ref/external` branch is compatible with `inline_styles`.
  • Loading branch information
dgp1130 committed May 1, 2022
1 parent 9cfe353 commit eb5d3ef
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/rules_prerender/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ publish_files(
name = "publish_files",
files = glob(["**/*.bzl"]) + [
"rollup-default.config.js",
"//packages/rules_prerender/css:publish_files",
"//packages/rules_prerender/declarative_shadow_dom:publish_files",
],
visibility = ["//:__pkg__"],
Expand Down
7 changes: 7 additions & 0 deletions packages/rules_prerender/css/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//tools:publish.bzl", "publish_files")

publish_files(
name = "publish_files",
files = glob(["**/*.bzl"]),
visibility = ["//packages/rules_prerender:__pkg__"],
)

bzl_library(
name = "css_binaries",
Expand Down
5 changes: 5 additions & 0 deletions packages/rules_prerender/css/BUILD.publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This file exists simply so this directory is considered a Bazel package and
# references to `//packages/rules_prerender/css:*.bzl` will resolve correctly.
# Without this file, it would need to be `//packages/rules_prerender:css/*.bzl`,
# meaning paths would be different between the local build of `rules_prerender`
# and user code loading this through `rules_nodejs` and the `@npm` workspace.

0 comments on commit eb5d3ef

Please sign in to comment.