-
Notifications
You must be signed in to change notification settings - Fork 5
/
BUILD
108 lines (89 loc) · 2.45 KB
/
BUILD
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
load("@aspect_bazel_lib//lib:copy_to_bin.bzl", "copy_to_bin")
load("@aspect_rules_js//js:defs.bzl", "js_library")
load("@aspect_rules_js//npm:defs.bzl", "npm_link_package")
load("@npm//:defs.bzl", "npm_link_all_packages")
package(default_visibility = ["//visibility:public"])
# This macro expands to a link_npm_package for each third-party package in package.json
npm_link_package(
name = "node_modules/@zilliqa-js/account",
src = "//zilliqa/js/account:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/blockchain",
src = "//zilliqa/js/blockchain:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/contract",
src = "//zilliqa/js/contract:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/core",
src = "//zilliqa/js/core:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/crypto",
src = "//zilliqa/js/crypto:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/proto",
src = "//zilliqa/js/proto:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/subscriptions",
src = "//zilliqa/js/subscriptions:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/util",
src = "//zilliqa/js/util:pkg",
visibility = ["//visibility:public"],
)
npm_link_package(
name = "node_modules/@zilliqa-js/zilliqa",
src = "//zilliqa/js/zilliqa:pkg",
visibility = ["//visibility:public"],
)
npm_link_all_packages(name = "node_modules")
exports_files([
"package.json",
"tsconfig.base.json",
"tsconfig.test.json",
])
exports_files(["docs"])
copy_to_bin(
name = "package",
srcs = ["package.json"],
)
copy_to_bin(
name = "tsconfig",
srcs = ["tsconfig.json"],
)
copy_to_bin(
name = "tsconfig.base",
srcs = ["tsconfig.base.json"],
visibility = ["//visibility:public"],
)
copy_to_bin(
name = "tsconfig.test",
srcs = [
"tsconfig.base.json",
"tsconfig.test.json",
],
visibility = ["//visibility:public"],
)
copy_to_bin(
name = "jest-setup",
srcs = ["jest-setup.js"],
visibility = ["//visibility:public"],
)
js_library(
name = "jest_config",
srcs = ["jest.config.js"],
visibility = ["//visibility:public"],
)