diff --git a/rules/rules_task/BUILD.bazel b/rules/rules_task/BUILD.bazel index ee5167f00..9c0dc2cb1 100644 --- a/rules/rules_task/BUILD.bazel +++ b/rules/rules_task/BUILD.bazel @@ -1,6 +1,4 @@ load("@rules_task//tools:defs.bzl", "compile_pip_requirements") -load("@npm//:defs.bzl", "npm_link_all_packages") -load("@npm//:semantic-release/package_json.bzl", semantic_release_bin = "bin") load(":defs.bzl", "cmd", "task") package(default_visibility = ["//visibility:public"]) @@ -16,26 +14,3 @@ compile_pip_requirements( requirements_in = "requirements.in", requirements_txt = "requirements.txt", ) - -semantic_release_bin.semantic_release_binary( - name = "semantic-release_bin", - log_level = "debug", -) - -task( - name = "release", - cmds = [ - cmd.shell( - cmd.executable(":semantic-release_bin"), - "$CLI_ARGS", - ), - ], - cwd = "$(dirname $(readlink -f $RELEASERC))", - env = { - "RELEASERC": cmd.file(".releaserc"), - "BAZEL_BINDIR": ".", - }, -) - -npm_link_all_packages( -) diff --git a/rules/rules_task/MODULE.bazel b/rules/rules_task/MODULE.bazel index a071602bd..5fe135771 100644 --- a/rules/rules_task/MODULE.bazel +++ b/rules/rules_task/MODULE.bazel @@ -31,27 +31,3 @@ pip.parse( ) use_repo(pip, "pip") - -# ------------------------------------ rules_js ------------------------------------ # -bazel_dep(name = "aspect_rules_js", version = "1.32.6") - -npm = use_extension( - "@aspect_rules_js//npm:extensions.bzl", - "npm", -) - -npm.npm_translate_lock( - name = "npm", - # Need to configure link_workspace otherwise invocation from setup workspace does not work - link_workspace = "rules_task", - pnpm_lock = "//:pnpm-lock.yaml", - verify_node_modules_ignored = "//:.bazelignore", -) - -use_repo(npm, "npm") - -bazel_dep(name = "rules_nodejs", version = "6.0.1") - -node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") - -node.toolchain(node_version = "18.17.1")