Andrew Kushnir 3d668162d9 Revert "refactor(dev-infra): remove usages and dependency on shelljs (#42394)" (#42829)
This reverts commit f0d857eff876033359a7c284171775041f75db5d.

PR Close #42829
2021-07-12 15:24:54 -07:00

46 lines
1.0 KiB
Python

load("//dev-infra:defaults.bzl", "jasmine_node_test", "ts_library")
ts_library(
name = "commit-message",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
visibility = ["//dev-infra:__subpackages__"],
deps = [
"//dev-infra/utils",
"@npm//@types/conventional-commits-parser",
"@npm//@types/git-raw-commits",
"@npm//@types/inquirer",
"@npm//@types/node",
"@npm//@types/shelljs",
"@npm//@types/yargs",
"@npm//conventional-commits-parser",
"@npm//git-raw-commits",
"@npm//inquirer",
"@npm//shelljs",
"@npm//yargs",
],
)
ts_library(
name = "test_lib",
testonly = True,
srcs = glob(["**/*.spec.ts"]),
deps = [
":commit-message",
"//dev-infra/utils",
"@npm//@types/events",
"@npm//@types/jasmine",
"@npm//@types/node",
"@npm//inquirer",
],
)
jasmine_node_test(
name = "test",
deps = [
":test_lib",
],
)