package(default_visibility = ["//visibility:public"])

load("//tools:defaults.bzl", "ts_library")

ts_library(
    name = "bazel-workspace",
    srcs = [
        "index.ts",
        "schema.d.ts",
    ],
    data = glob(["files/**/*"]) + [
        "schema.json",
    ],
    deps = [
        "@ngdeps//@angular-devkit/core",
        "@ngdeps//@angular-devkit/schematics",
        "@ngdeps//@schematics/angular",
    ],
)

ts_library(
    name = "test",
    testonly = True,
    srcs = [
        "index_spec.ts",
    ],
    data = [
        "//packages/bazel/src/schematics:package_assets",
    ],
    deps = [
        ":bazel-workspace",
        "@ngdeps//@angular-devkit/schematics",
    ],
)
