Skip to content

Commit 4ffc965

Browse files
committed
chore: restore WORKSPACE file
otherwise ibazel can't find the workspace root
1 parent 0bc6277 commit 4ffc965

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

angular-ngc/MODULE.bazel

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
"Bazel module dependencies"
2+
3+
bazel_dep(name = "aspect_bazel_lib", version = "2.9.4")
4+
bazel_dep(name = "aspect_rules_esbuild", version = "0.21.0")
5+
bazel_dep(name = "aspect_rules_js", version = "2.1.0")
6+
bazel_dep(name = "aspect_rules_ts", version = "3.3.1")
7+
bazel_dep(name = "rules_nodejs", version = "6.3.2")
8+
9+
# Duplicates the definition in sass_workaround.bzl.
10+
# Required because MODULE.bazel cannot load() symbols from other starlark code.
11+
# TODO(alexeagle): find a better way
12+
SASS_DEPS = ["@angular/cdk"] + [
13+
"@material/" + p
14+
for p in [
15+
"animation",
16+
"base",
17+
"button",
18+
"card",
19+
"checkbox",
20+
"chips",
21+
"circular-progress",
22+
"data-table",
23+
"density",
24+
"dialog",
25+
"dom",
26+
"elevation",
27+
"fab",
28+
"feature-targeting",
29+
"floating-label",
30+
"focus-ring",
31+
"form-field",
32+
"line-ripple",
33+
"linear-progress",
34+
"list",
35+
"menu",
36+
"menu-surface",
37+
"notched-outline",
38+
"icon-button",
39+
"radio",
40+
"ripple",
41+
"rtl",
42+
"select",
43+
"shape",
44+
"slider",
45+
"snackbar",
46+
"switch",
47+
"tab",
48+
"tab-bar",
49+
"tab-indicator",
50+
"tab-scroller",
51+
"textfield",
52+
"theme",
53+
"tooltip",
54+
"touch-target",
55+
"tokens",
56+
"typography",
57+
]
58+
]
59+
60+
pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm")
61+
62+
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node", dev_dependency = True)
63+
64+
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm")
65+
66+
ts = use_extension("@aspect_rules_ts//ts:extensions.bzl", "ext")
67+
68+
node.toolchain(node_version = "16.14.2")
69+
70+
npm.npm_translate_lock(
71+
name = "npm",
72+
bins = {
73+
"@angular/compiler-cli": [
74+
"ngcc=./bundles/ngcc/main-ngcc.js",
75+
],
76+
},
77+
custom_postinstalls = {
78+
"ng2-dragula": "ngcc --source .",
79+
},
80+
npm_package_target_name = "{dirname}",
81+
npmrc = "//:.npmrc",
82+
pnpm_lock = "//:pnpm-lock.yaml",
83+
public_hoist_packages = {
84+
p: ["packages/lib-a"]
85+
for p in SASS_DEPS
86+
},
87+
verify_node_modules_ignored = "//:.bazelignore",
88+
)
89+
90+
ts.deps(
91+
ts_version_from = "//:package.json",
92+
)
93+
94+
use_repo(pnpm, "pnpm")
95+
96+
use_repo(npm, "npm")
97+
98+
use_repo(ts, "npm_typescript")

angular-ngc/WORKSPACE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Workaround https://github.com/bazelbuild/bazel-watcher/pull/647

0 commit comments

Comments
 (0)