Questions tagged [bazel-rules-js]
2 questions
3
votes
1 answer
How to setup a bazel workspace with `rules_js` for a monorepo with multiple packages?
I want to setup the bazel build system to build a monorepo with multiple JavaScript packages with the new rules_js rule set. The documentation of rules_js says that it supports "nested npm packages in a monorepo" via "workspaces", but I don't…

Toxaris
- 7,156
- 1
- 21
- 37
0
votes
2 answers
How to expand a build flag into an environment dict?
I am trying to make my build configurable with a custom flag.
It should be possible to specify the flag value when I build, e.g.
bazel build //test:bundle --//:foo_flag=bar
Here is my build target definition (using…

sdgfsdh
- 33,689
- 26
- 132
- 245