Skip to content

Commit 97a97c7

Browse files
Prepare to Push to BCR
Last bit of housecleaning before attempting to push this version to the BCR. Primarily just updates examples/bzlmod/ to use clarodocs(). Updates the JS related Module deps to not be considered "dev" dependencies as they need to be available for downstream Modules depending on claro-lang. Also fixes the stdlib/cache module so that it correctly builds. Updates the examples/bzlmod/ project to manually place JS related Module deps since it looks like Bazel requires these to be direct deps of downstream projects since the clarodocs() macro references the repos but they aren't known to Bazel from the perspective of a downstream dependent apparently. Updates tools/clarodocs/defs.bzl to use fully qualified `@claro-lang` prefix on all targets listed there since it's referenced by the clarodocs_rules.bzl downstream users will be using.
1 parent 7fd8342 commit 97a97c7

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

MODULE.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module(
22
name = "claro-lang",
33
repo_name = "claro-lang",
4-
version = "0.1.502",
4+
version = "0.1.503",
55
)
66

77
bazel_dep(name = "aspect_bazel_lib", version = "2.0.1")

examples/bzlmod/MODULE.bazel

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
module(name = "example-claro-module")
22

3-
bazel_dep(name = "claro-lang", version = "0.1.502")
3+
bazel_dep(name = "claro-lang", version = "0.1.503")
44

5+
# NOTE: These "dev dependencies" are only necessary if you'd like to use ClaroDocs to visualize
6+
# Claro programs as a local dev server. With these dependencies added, you should be able to
7+
# `load("@claro-lang//tools/clarodocs/generator:clarodocs_rules.bzl", "clarodocs")` in your
8+
# BUILD files. Then: `clarodocs(name = ..., root = ":some_claro_binary")` targets can be run.
9+
bazel_dep(name = "aspect_bazel_lib", version = "2.0.1", dev_dependency = True)
10+
bazel_dep(name = "aspect_rules_js", version = "1.38.0", dev_dependency = True)

tools/clarodocs/defs.bzl

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ SRC_PATTERNS = [
1414
]
1515

1616
RUNTIME_DEPS = [
17-
"//tools/clarodocs:runtime_deps",
18-
"//tools/clarodocs:node_modules/react-dom",
19-
"//tools/clarodocs:node_modules/react",
20-
"//tools/clarodocs:node_modules/web-vitals",
21-
"//tools/clarodocs/src:assets",
22-
"//tools/clarodocs/src",
23-
"//tools/clarodocs/public",
17+
"@claro-lang//tools/clarodocs:runtime_deps",
18+
"@claro-lang//tools/clarodocs:node_modules/react-dom",
19+
"@claro-lang//tools/clarodocs:node_modules/react",
20+
"@claro-lang//tools/clarodocs:node_modules/web-vitals",
21+
"@claro-lang//tools/clarodocs/src:assets",
22+
"@claro-lang//tools/clarodocs/src",
23+
"@claro-lang//tools/clarodocs/public",
2424
]
2525

2626
# Filename conventions described at
@@ -35,5 +35,5 @@ TEST_PATTERNS = [
3535
# Partially-apply our (generated) .swcrc config file to the swc starlark function
3636
TRANSPILER = partial.make(
3737
swc,
38-
swcrc = "//tools/clarodocs:.swcrc",
38+
swcrc = "@claro-lang//tools/clarodocs:.swcrc",
3939
)

0 commit comments

Comments
 (0)