diff --git a/python/BUILD.bazel b/python/BUILD.bazel index f4e59faf3..93c0a9757 100644 --- a/python/BUILD.bazel +++ b/python/BUILD.bazel @@ -2,6 +2,15 @@ load("@rules_python//python:defs.bzl", "py_binary") load("@py_deps//:requirements.bzl", "requirement") load(":binary.bzl", "pip_binary") +# e.g. bazel run python +alias( + name = "python", + actual = "@python//:python", +) + +# e.g. bazel run python:pip +pip_binary(name = "pip") + pip_binary(name = "black") pip_binary(name = "isort") diff --git a/scripts/python b/scripts/python new file mode 100755 index 000000000..4fc4de93c --- /dev/null +++ b/scripts/python @@ -0,0 +1,3 @@ +#!/bin/bash + +bazel run python -- $* diff --git a/ts/BUILD.bazel b/ts/BUILD.bazel index e9c5afe2d..f4dc180d0 100644 --- a/ts/BUILD.bazel +++ b/ts/BUILD.bazel @@ -29,3 +29,8 @@ alias( name = "yarn", actual = "@nodejs//:yarn", ) + +alias( + name = "node", + actual = "@nodejs//:node", +)