|
1 | | -# TODO: migrate all root WORKSPACE dependencies to MODULE.bazel |
2 | | -# https://github.com/bazel-contrib/rules_nodejs/issues/3695 |
3 | | -common --noenable_bzlmod |
4 | | -common --enable_workspace |
| 1 | +import %workspace%/tools/preset.bazelrc |
5 | 2 |
|
6 | | -# Specifies desired output mode for running tests. |
7 | | -# Valid values are |
8 | | -# 'summary' to output only test status summary |
9 | | -# 'errors' to also print test logs for failed tests |
10 | | -# 'all' to print logs for all tests |
11 | | -# 'streamed' to output logs for all tests in real time |
12 | | -# (this will force tests to be executed locally one at a time regardless of --test_strategy value). |
13 | | -common --test_output=errors |
14 | | - |
15 | | -# Turn on --incompatible_strict_action_env which was on by default |
16 | | -# in Bazel 0.21.0 but turned off again in 0.22.0. Follow |
17 | | -# https://github.com/bazelbuild/bazel/issues/7026 for more details. |
18 | | -# This flag is needed to so that the bazel cache is not invalidated |
19 | | -# when running bazel via `yarn bazel`. |
20 | | -# See https://github.com/angular/angular/issues/27514. |
21 | | -common --incompatible_strict_action_env |
22 | | - |
23 | | -# Turn off legacy external runfiles |
24 | | -# This prevents accidentally depending on this feature, which Bazel will remove. |
25 | | -common --nolegacy_external_runfiles |
26 | | - |
27 | | -# Don’t want to push a rules author to update their deps if not needed. |
28 | | -# https://bazel.build/reference/command-line-reference#flag--check_direct_dependencies |
29 | | -# https://bazelbuild.slack.com/archives/C014RARENH0/p1691158021917459?thread_ts=1691156601.420349&cid=C014RARENH0 |
30 | | -common --check_direct_dependencies=off |
| 3 | +common --config=ruleset |
31 | 4 |
|
32 | 5 | # In the root MODULE.bazel file we don't set include_headers on the nodejs toolchain |
33 | 6 | # so the `//nodejs/headers:current_node_cc_headers`` target will not build. This target |
34 | 7 | # is instead tested in `e2e/headers`` |
35 | 8 | common --deleted_packages=nodejs/headers |
36 | | - |
37 | | -# Load any settings specific to the current user. |
38 | | -# .bazelrc.user should appear in .gitignore so that settings are not shared with team members |
39 | | -# This needs to be last statement in this |
40 | | -# config, as the user configuration should be able to overwrite flags from this file. |
41 | | -# See https://docs.bazel.build/versions/master/best-practices.html#bazelrc |
42 | | -# (Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing, |
43 | | -# rather than user.bazelrc as suggested in the Bazel docs) |
44 | | -try-import %workspace%/.bazelrc.user |
0 commit comments