diff --git a/packages/rules_prerender/css/BUILD.bazel b/packages/rules_prerender/css/BUILD.bazel index 2ef33d45..393cea3c 100644 --- a/packages/rules_prerender/css/BUILD.bazel +++ b/packages/rules_prerender/css/BUILD.bazel @@ -31,7 +31,7 @@ bzl_library( name = "css_providers", srcs = ["css_providers.bzl"], visibility = [ - "//packages/css_bundler:__subpackages__", "//packages/rules_prerender:__pkg__", + "//tools/binaries/css_bundler:__subpackages__", ], ) diff --git a/packages/rules_prerender/css/css_binaries.bzl b/packages/rules_prerender/css/css_binaries.bzl index fbab1d81..5e46c13f 100644 --- a/packages/rules_prerender/css/css_binaries.bzl +++ b/packages/rules_prerender/css/css_binaries.bzl @@ -1,6 +1,6 @@ """Defines `css_binaries()` and related rules.""" -load("//packages/css_bundler:css_bundle.bzl", "css_bundle") +load("//tools/binaries/css_bundler:css_bundle.bzl", "css_bundle") load(":css_group.bzl", "css_group") load(":css_providers.bzl", "CssInfo") diff --git a/packages/rules_prerender/css/tests/bundle/BUILD.bazel b/packages/rules_prerender/css/tests/bundle/BUILD.bazel index 0c587b50..7eeaaea3 100644 --- a/packages/rules_prerender/css/tests/bundle/BUILD.bazel +++ b/packages/rules_prerender/css/tests/bundle/BUILD.bazel @@ -1,6 +1,6 @@ load("@aspect_bazel_lib//lib:diff_test.bzl", "diff_test") -load("//packages/css_bundler:css_bundle.bzl", "css_bundle") load("//packages/rules_prerender/css:css_library.bzl", "css_library") +load("//tools/binaries/css_bundler:css_bundle.bzl", "css_bundle") css_bundle( name = "bundle", diff --git a/packages/css_bundler/BUILD.bazel b/tools/binaries/css_bundler/BUILD.bazel similarity index 100% rename from packages/css_bundler/BUILD.bazel rename to tools/binaries/css_bundler/BUILD.bazel index 74def92f..fabfcf7b 100644 --- a/packages/css_bundler/BUILD.bazel +++ b/tools/binaries/css_bundler/BUILD.bazel @@ -1,7 +1,7 @@ load("@aspect_rules_js//js:defs.bzl", "js_binary") load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("//tools/typescript:defs.bzl", "ts_project") load("//tools/jasmine:defs.bzl", "jasmine_node_test") +load("//tools/typescript:defs.bzl", "ts_project") bzl_library( name = "css_bundle", diff --git a/packages/css_bundler/css_bundle.bzl b/tools/binaries/css_bundler/css_bundle.bzl similarity index 98% rename from packages/css_bundler/css_bundle.bzl rename to tools/binaries/css_bundler/css_bundle.bzl index b0cd14d4..c7410861 100644 --- a/packages/css_bundler/css_bundle.bzl +++ b/tools/binaries/css_bundler/css_bundle.bzl @@ -47,7 +47,7 @@ css_bundle = rule( doc = "The `css_library()` target to bundle all its direct sources.", ), "_bundler": attr.label( - default = "//packages/css_bundler", + default = "//tools/binaries/css_bundler", executable = True, cfg = "exec", ), diff --git a/packages/css_bundler/css_bundler.ts b/tools/binaries/css_bundler/css_bundler.ts similarity index 95% rename from packages/css_bundler/css_bundler.ts rename to tools/binaries/css_bundler/css_bundler.ts index 7966b912..fa260fe8 100644 --- a/packages/css_bundler/css_bundler.ts +++ b/tools/binaries/css_bundler/css_bundler.ts @@ -1,8 +1,8 @@ import { promises as fs } from 'fs'; import { bundleAsync } from 'lightningcss'; import * as yargs from 'yargs'; -import { main } from '../../common/binary'; -import { mdSpacing } from '../../common/formatters'; +import { main } from '../../../common/binary'; +import { mdSpacing } from '../../../common/formatters'; main(async () => { const { diff --git a/packages/css_bundler/css_bundler_test.ts b/tools/binaries/css_bundler/css_bundler_test.ts similarity index 94% rename from packages/css_bundler/css_bundler_test.ts rename to tools/binaries/css_bundler/css_bundler_test.ts index dcfcf811..4b634650 100644 --- a/packages/css_bundler/css_bundler_test.ts +++ b/tools/binaries/css_bundler/css_bundler_test.ts @@ -1,8 +1,8 @@ import { promises as fs } from 'fs'; -import { useTempDir } from '../../common/testing/temp_dir'; -import { execBinary, ProcessResult } from '../../common/testing/binary'; +import { useTempDir } from '../../../common/testing/temp_dir'; +import { execBinary, ProcessResult } from '../../../common/testing/binary'; -const binary = 'packages/css_bundler/css_bundler.sh'; +const binary = 'tools/binaries/css_bundler/css_bundler.sh'; async function run({ entryPoints, outputs }: { entryPoints: string[],