Skip to content

Commit

Permalink
Moves //packages/css_bundler/... to `//tools/binaries/css_bundler/.…
Browse files Browse the repository at this point in the history
…..`.

Refs #67.

This is because this is a tool executed at build time, not a package installed by the user.
  • Loading branch information
dgp1130 committed Feb 19, 2023
1 parent 3bd25e2 commit a29176e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/rules_prerender/css/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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__",
],
)
2 changes: 1 addition & 1 deletion packages/rules_prerender/css/css_binaries.bzl
Original file line number Diff line number Diff line change
@@ -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")

Expand Down
2 changes: 1 addition & 1 deletion packages/rules_prerender/css/tests/bundle/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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[],
Expand Down

0 comments on commit a29176e

Please sign in to comment.