-
Notifications
You must be signed in to change notification settings - Fork 519
/
Copy pathesbuild_packages.bzl
70 lines (68 loc) · 2.57 KB
/
esbuild_packages.bzl
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
"""Info for the esbuild packages used"""
### These values are updated automaticly via `yarn update-esbuild-versions`
_VERSION = "0.14.38"
_DARWIN_AMD64_SHA = "6b653d37b9cb0a8ca17f5cb566010c080b2fa70580a026d1a31800a82562ca52"
_DARWIN_ARM64_SHA = "1e2b751ebbfdfe89f2e8539acc5f714e170fc26dbc86e4f397b3fcd8d2daad6d"
_LINUX_AMD64_SHA = "9d26a22a0ea2f06437fa9d43cdeea830a9ccd1dfefd243fa2122693051772b67"
_LINUX_ARM64_SHA = "de623810365a050355a3c4e9af88ff9d851e9159278ee0ba1aa06c95d4383834"
_WINDOWS_AMD64_SHA = "d5546603c3da5ee83a717a647baae3e94d60e95543b4b348d149364e30ef2510"
ESBUILD_PACKAGES = struct(
version = _VERSION,
platforms = dict({
"darwin_amd64": struct(
sha = _DARWIN_AMD64_SHA,
urls = [
"https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-%s.tgz" % _VERSION,
],
binary_path = "bin/esbuild",
exec_compatible_with = [
"@platforms//os:macos",
"@platforms//cpu:x86_64",
],
),
"darwin_arm64": struct(
sha = _DARWIN_ARM64_SHA,
urls = [
"https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-%s.tgz" % _VERSION,
],
binary_path = "bin/esbuild",
exec_compatible_with = [
"@platforms//os:macos",
"@platforms//cpu:aarch64",
],
),
"linux_amd64": struct(
sha = _LINUX_AMD64_SHA,
urls = [
"https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-%s.tgz" % _VERSION,
],
binary_path = "bin/esbuild",
exec_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
),
"linux_arm64": struct(
sha = _LINUX_ARM64_SHA,
urls = [
"https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-%s.tgz" % _VERSION,
],
binary_path = "bin/esbuild",
exec_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:aarch64",
],
),
"windows_amd64": struct(
sha = _WINDOWS_AMD64_SHA,
urls = [
"https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-%s.tgz" % _VERSION,
],
binary_path = "esbuild.exe",
exec_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
),
}),
)