Skip to content

Commit

Permalink
chore(deps): upgrade to rules_js 2 (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored May 29, 2024
1 parent a520518 commit cf28458
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
20 changes: 10 additions & 10 deletions frontend/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
"Bazel module dependencies, see https://bazel.build/external/overview#bzlmod"

bazel_dep(name = "aspect_bazel_lib", version = "2.7.6")
bazel_dep(name = "aspect_rules_lint", version = "0.18.0")
bazel_dep(name = "aspect_rules_jest", version = "0.20.0")
bazel_dep(name = "aspect_rules_js", version = "1.41.2")
bazel_dep(name = "aspect_rules_swc", version = "1.2.2")
bazel_dep(name = "aspect_rules_ts", version = "2.2.0")
bazel_dep(name = "aspect_rules_rollup", version = "1.0.2")
bazel_dep(name = "aspect_rules_webpack", version = "0.14.0")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_nodejs", version = "6.1.0")
bazel_dep(name = "aspect_rules_lint", version = "1.0.0-rc1")
bazel_dep(name = "aspect_rules_jest", version = "0.22.0-rc0")
bazel_dep(name = "aspect_rules_js", version = "2.0.0-rc1")
bazel_dep(name = "aspect_rules_swc", version = "2.0.0-rc0")
bazel_dep(name = "aspect_rules_ts", version = "3.0.0-rc0")
bazel_dep(name = "aspect_rules_rollup", version = "2.0.0-rc0")
bazel_dep(name = "aspect_rules_webpack", version = "0.16.0-rc0")
bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "rules_nodejs", version = "6.1.1")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
node.toolchain(node_version = "18.17.0")
node.toolchain(node_version = "20.13.1")

pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm", dev_dependency = True)
use_repo(pnpm, "pnpm")
Expand Down
4 changes: 1 addition & 3 deletions frontend/packages/one/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ ts_project(

# make this library available via node_modules
npm_package(
name = "one",
name = "pkg",
srcs = [
"package.json",
":one_ts",
],
# This is a perf improvement; the default will be flipped to False in rules_js 2.0
include_runfiles = False,
visibility = ["//visibility:public"],
)
2 changes: 1 addition & 1 deletion frontend/vue/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ vue_tsc_bin.vue_tsc_test(
args = ["--noEmit"],
chdir = package_name(),
data = SRCS + BUILD_DEPS,
include_declarations = True,
include_types = True,
)

vite_bin.vite_binary(
Expand Down
2 changes: 1 addition & 1 deletion frontend/vue/libraries/simple/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ vue_tsc_bin.vue_tsc(

# TODO(alexeagle): show how this could be published to npm
npm_package(
name = "simple",
name = "pkg",
srcs = [
"package.json",
":build",
Expand Down

0 comments on commit cf28458

Please sign in to comment.