generated from pedrobarco/typescript-bazel-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
38 lines (31 loc) · 752 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
load("@aspect_rules_ts//ts:defs.bzl", "ts_config", "ts_project")
package(default_visibility = ["//visibility:public"])
npm_link_all_packages(name = "node_modules")
exports_files([
"tsconfig.json",
"tsconfig.eslint.json",
".eslintrc.js",
".eslintignore",
])
ts_config(
name = "tsconfig",
src = "tsconfig.json",
)
copy_to_bin(
name = "prettierrc",
srcs = [".prettierrc.json"],
)
copy_to_bin(
name = "prettierignore",
srcs = [".prettierignore"],
)
ts_project(
name = "jest_config",
srcs = ["jest.config.ts"],
tsconfig = {},
deps = [
"//:node_modules/@jest/types",
],
)