Skip to content

Commit

Permalink
chore: load rules_js_dev_dependencies from js/private
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed May 20, 2024
1 parent af0d918 commit d5d661e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ workspace(
name = "aspect_rules_js",
)

load("//js:dev_repositories.bzl", "rules_js_dev_dependencies")
# buildifier: disable=bzl-visibility
load("//js/private:dev_deps.bzl", "rules_js_dev_dependencies")

rules_js_dev_dependencies()

Expand Down
10 changes: 0 additions & 10 deletions js/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,3 @@ bzl_library(
"@bazel_tools//tools/build_defs/repo:utils.bzl",
] + (["@bazel_tools//tools/build_defs/repo:cache.bzl"] if bazel_lib_utils.is_bazel_7_or_greater() else []),
)

bzl_library(
name = "dev_repositories",
srcs = ["dev_repositories.bzl"],
visibility = ["//visibility:public"],
deps = [
"@bazel_tools//tools/build_defs/repo:http.bzl",
"@bazel_tools//tools/build_defs/repo:utils.bzl",
] + (["@bazel_tools//tools/build_defs/repo:cache.bzl"] if bazel_lib_utils.is_bazel_7_or_greater() else []),
)
10 changes: 10 additions & 0 deletions js/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ exports_files([
"npm_wrapper.sh",
])

bzl_library(
name = "dev_deps",
srcs = ["dev_deps.bzl"],
visibility = ["//visibility:public"],
deps = [
"@bazel_tools//tools/build_defs/repo:http.bzl",
"@bazel_tools//tools/build_defs/repo:utils.bzl",
] + (["@bazel_tools//tools/build_defs/repo:cache.bzl"] if bazel_lib_utils.is_bazel_7_or_greater() else []),
)

bzl_library(
name = "js_info_files",
srcs = ["js_info_files.bzl"],
Expand Down
File renamed without changes.

0 comments on commit d5d661e

Please sign in to comment.