From 80ed09c012bc39a3c77475efa67a51776343c447 Mon Sep 17 00:00:00 2001 From: Doug Parker Date: Sat, 18 Feb 2023 21:44:19 -0800 Subject: [PATCH] Moves `@rules_prerender/declarative_shadow_dom` into `//packages/declarative_shadow_dom`. This is no longer included in the `rules_prerender` package, so it should not be under that directory. --- BUILD.bazel | 2 +- examples/external/BUILD.bazel | 2 +- .../{rules_prerender => }/declarative_shadow_dom/BUILD.bazel | 0 packages/{rules_prerender => }/declarative_shadow_dom/README.md | 0 .../declarative_shadow_dom/declarative_shadow_dom.ts | 0 .../declarative_shadow_dom/declarative_shadow_dom_polyfill.ts | 0 .../declarative_shadow_dom/declarative_shadow_dom_test.ts | 2 +- .../{rules_prerender => }/declarative_shadow_dom/package.json | 0 packages/rules_prerender/BUILD.bazel | 1 - 9 files changed, 3 insertions(+), 4 deletions(-) rename packages/{rules_prerender => }/declarative_shadow_dom/BUILD.bazel (100%) rename packages/{rules_prerender => }/declarative_shadow_dom/README.md (100%) rename packages/{rules_prerender => }/declarative_shadow_dom/declarative_shadow_dom.ts (100%) rename packages/{rules_prerender => }/declarative_shadow_dom/declarative_shadow_dom_polyfill.ts (100%) rename packages/{rules_prerender => }/declarative_shadow_dom/declarative_shadow_dom_test.ts (86%) rename packages/{rules_prerender => }/declarative_shadow_dom/package.json (100%) diff --git a/BUILD.bazel b/BUILD.bazel index 507f0123..48e8f76c 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -60,7 +60,7 @@ types_only( npm_link_package( name = "node_modules/@rules_prerender/declarative_shadow_dom", - src = "//packages/rules_prerender/declarative_shadow_dom:pkg", + src = "//packages/declarative_shadow_dom:pkg", visibility = ["//visibility:public"], ) link_prerender_component( diff --git a/examples/external/BUILD.bazel b/examples/external/BUILD.bazel index 4358bbf1..14729cce 100644 --- a/examples/external/BUILD.bazel +++ b/examples/external/BUILD.bazel @@ -19,7 +19,7 @@ npm_link_package( ) npm_link_package( name = "node_modules/@rules_prerender/declarative_shadow_dom", - src = "@rules_prerender//packages/rules_prerender/declarative_shadow_dom:pkg", + src = "@rules_prerender//packages/declarative_shadow_dom:pkg", visibility = ["//visibility:public"], ) link_prerender_component( diff --git a/packages/rules_prerender/declarative_shadow_dom/BUILD.bazel b/packages/declarative_shadow_dom/BUILD.bazel similarity index 100% rename from packages/rules_prerender/declarative_shadow_dom/BUILD.bazel rename to packages/declarative_shadow_dom/BUILD.bazel diff --git a/packages/rules_prerender/declarative_shadow_dom/README.md b/packages/declarative_shadow_dom/README.md similarity index 100% rename from packages/rules_prerender/declarative_shadow_dom/README.md rename to packages/declarative_shadow_dom/README.md diff --git a/packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom.ts b/packages/declarative_shadow_dom/declarative_shadow_dom.ts similarity index 100% rename from packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom.ts rename to packages/declarative_shadow_dom/declarative_shadow_dom.ts diff --git a/packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom_polyfill.ts b/packages/declarative_shadow_dom/declarative_shadow_dom_polyfill.ts similarity index 100% rename from packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom_polyfill.ts rename to packages/declarative_shadow_dom/declarative_shadow_dom_polyfill.ts diff --git a/packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom_test.ts b/packages/declarative_shadow_dom/declarative_shadow_dom_test.ts similarity index 86% rename from packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom_test.ts rename to packages/declarative_shadow_dom/declarative_shadow_dom_test.ts index 757a7b11..f10ecf46 100644 --- a/packages/rules_prerender/declarative_shadow_dom/declarative_shadow_dom_test.ts +++ b/packages/declarative_shadow_dom/declarative_shadow_dom_test.ts @@ -1,4 +1,4 @@ -import { createAnnotation } from '../../../common/models/prerender_annotation'; +import { createAnnotation } from '../../common/models/prerender_annotation'; import { polyfillDeclarativeShadowDom } from './declarative_shadow_dom'; describe('declarative_shadow_dom', () => { diff --git a/packages/rules_prerender/declarative_shadow_dom/package.json b/packages/declarative_shadow_dom/package.json similarity index 100% rename from packages/rules_prerender/declarative_shadow_dom/package.json rename to packages/declarative_shadow_dom/package.json diff --git a/packages/rules_prerender/BUILD.bazel b/packages/rules_prerender/BUILD.bazel index 309d8d26..6d4c2a84 100644 --- a/packages/rules_prerender/BUILD.bazel +++ b/packages/rules_prerender/BUILD.bazel @@ -134,7 +134,6 @@ bzl_library( ts_project( name = "scripts", srcs = ["scripts.ts"], - visibility = ["//packages/rules_prerender/declarative_shadow_dom:__pkg__"], deps = ["//common/models:prerender_annotation"], )