Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Nested modules
docs/
e2e/
examples/node_modules
examples/generate_swcrc/node_modules
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@ jobs:
# Root folder is bzlmod-only
- folder: .
bzlmod: 0
include:
- bazel-version:
major: 7
version: 7.6.1
bzlmod: 1
os: ubuntu
folder: docs

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module(
)

# Lower-bounds (minimum) versions for direct runtime dependencies
bazel_dep(name = "aspect_bazel_lib", version = "2.11.0")
bazel_dep(name = "aspect_bazel_lib", version = "2.19.3")
bazel_dep(name = "aspect_tools_telemetry", version = "0.2.3")
bazel_dep(name = "aspect_rules_js", version = "2.0.0") # Note: only used for provider symbols, we don't spawn nodejs actions
bazel_dep(name = "bazel_skylib", version = "1.5.0")
Expand All @@ -26,7 +26,6 @@ use_repo(swc, "swc_toolchains")
register_toolchains("@swc_toolchains//:all")

####### Dev dependencies ########

bazel_dep(name = "bazelrc-preset.bzl", version = "1.1.0", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ but note that this may have breaking changes between major releases.
Alternatively you can write a rule from scratch, using the toolchains and
SWC cli provided in aspect_rules_swc.

### Synchronizing settings with tsconfig.json

See (tsconfig.md)[./docs/tsconfig.md]

# Telemetry & privacy policy

This ruleset collects limited usage data via [`tools_telemetry`](https://github.com/aspect-build/tools_telemetry), which is reported to Aspect Build Inc and governed by our [privacy policy](https://www.aspect.build/privacy-policy).
1 change: 0 additions & 1 deletion docs/.bazelversion

This file was deleted.

18 changes: 0 additions & 18 deletions docs/BUILD.bazel

This file was deleted.

8 changes: 0 additions & 8 deletions docs/MODULE.bazel

This file was deleted.

88 changes: 0 additions & 88 deletions docs/repositories.md

This file was deleted.

114 changes: 0 additions & 114 deletions docs/swc.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/source_map_support/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@aspect_bazel_lib//:bzl_library.bzl", "bzl_library")
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

exports_files([
"defs.bzl",
Expand Down
15 changes: 1 addition & 14 deletions swc/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
load("@aspect_bazel_lib//:bzl_library.bzl", "bzl_library")
load("@aspect_bazel_lib//lib:utils.bzl", bazel_lib_utils = "utils")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//swc/private:resolved_toolchain.bzl", "resolved_toolchain")

# For stardoc to reference the files
exports_files([
"defs.bzl",
"repositories.bzl",
])

# This is the target rule authors should put in their "toolchains"
# attribute in order to get a runtime for the correct platform.
# See https://docs.bazel.build/versions/main/toolchains.html#writing-rules-that-use-toolchains
Expand Down Expand Up @@ -58,13 +52,6 @@ bzl_library(
] + (["@bazel_tools//tools/build_defs/repo:cache.bzl"] if bazel_lib_utils.is_bazel_7_or_greater() else []),
)

bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
visibility = ["//visibility:public"],
deps = [":repositories"],
)

bzl_library(
name = "providers",
srcs = ["providers.bzl"],
Expand Down
6 changes: 3 additions & 3 deletions swc/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def rules_swc_dependencies():

http_archive(
name = "aspect_bazel_lib",
integrity = "sha256-yW22ndJxSjfzKYM4oaQrJ+OiaWw7Nt1EQbm/ehoSvuA=",
strip_prefix = "bazel-lib-2.11.0",
url = "https://github.com/aspect-build/bazel-lib/releases/download/v2.11.0/bazel-lib-v2.11.0.tar.gz",
sha256 = "db7da732db4dece80cd6d368220930950c9306ff356ebba46498fe64e65a3945",
strip_prefix = "bazel-lib-2.19.3",
url = "https://github.com/bazel-contrib/bazel-lib/releases/download/v2.19.3/bazel-lib-v2.19.3.tar.gz",
)

http_archive(
Expand Down
Loading
Loading