Skip to content

Commit cea4cdb

Browse files
authored
chore: update rules_js (#27)
1 parent 20e824b commit cea4cdb

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

examples/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
load("@npm//:defs.bzl", "link_js_packages", "package")
1+
load("@npm//:defs.bzl", "link_js_packages")
22
load("@aspect_rules_js//js:defs.bzl", "link_js_package")
33

44
# Building this target results in bazel-bin/examples/node_modules/@myorg/js_lib, so that
55
# TypeScript and other node programs beneath bazel-bin/examples are able to resolve its location.
66
link_js_package(
7-
name = package("@myorg/js_lib").name,
7+
name = "link_js_lib",
88
src = "//examples/js_lib",
9+
root_package = "examples",
910
visibility = ["//examples:__subpackages__"],
1011
)
1112

examples/simple/BUILD.bazel

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
load("@aspect_rules_ts//ts:defs.bzl", "ts_project")
22
load("@bazel_skylib//rules:write_file.bzl", "write_file")
3-
load("@npm//:defs.bzl", "package")
43

54
# Dependencies for all targets in this package
65
_DEPS = [
7-
# For packages within the workspace, we use the package() helper to get a label
8-
# for the location where it's linked in the node_modules tree:
9-
package("@myorg/js_lib"),
6+
# For packages within the workspace, we use the link target in the node_modules tree:
7+
"//examples:link_js_lib",
108
# Third-party packages from npm can be referenced directly:
11-
"@npm//@types/node",
9+
"@npm//examples/@types/node",
1210
]
1311

1412
# Type-checks, and emits output to

ts/repositories.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ load("//ts/private:versions.bzl", TS_VERSIONS = "VERSIONS")
1111
versions = struct(
1212
bazel_lib = "0.11.1",
1313
rules_nodejs = "5.4.0",
14-
rules_js = "61b1867c79e6ee46a0a926fd9b6894e95457c01b",
14+
rules_js = "0.8.0",
1515
)
1616

1717
LATEST_VERSION = TS_VERSIONS.keys()[-1]
@@ -107,9 +107,9 @@ def rules_ts_dependencies(ts_version_from = None, ts_version = None, ts_integrit
107107
maybe(
108108
http_archive,
109109
name = "aspect_rules_js",
110-
sha256 = "9d733a3b38e20a09f803affc5ec052bafee35792f3cd52d53f219be24727349c",
110+
sha256 = "06dd11130f05df3e8b9aa8cc1b93577e88f540cd4ece8f00035109cc17dcf5ff",
111111
strip_prefix = "rules_js-" + versions.rules_js,
112-
url = "https://github.com/aspect-build/rules_js/archive/{}.tar.gz".format(versions.rules_js),
112+
url = "https://github.com/aspect-build/rules_js/archive/refs/tags/v{}.tar.gz".format(versions.rules_js),
113113
)
114114

115115
maybe(

0 commit comments

Comments
 (0)