Skip to content

Commit e409457

Browse files
committed
sad
1 parent e71cf93 commit e409457

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tools/sync-all-modules.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
#!/bin/bash
22
set -e
33

4-
# Set the BAZEL environment variable to ensure the correct version is used.
5-
export BAZEL="$(pwd)/node_modules/.bin/bazel"
6-
74
echo "Starting synchronization of all Bazel modules..."
85

96
# Update the root lockfile. This is needed for the sync-module-bazel command to work.
10-
"$BAZEL" mod deps --lockfile_mode=update
7+
bazel mod deps --lockfile_mode=update
118

129
# Find and store all MODULE.bazel directories
1310
module_dirs=()
@@ -22,11 +19,11 @@ for dir in "${module_dirs[@]}"; do
2219
if [[ -f "$dir/package.json" ]] && grep -q '"ng-dev":' "$dir/package.json"; then
2320
(
2421
cd "$dir"
25-
pnpm -s ng-dev misc sync-module-bazel
22+
pnpm ng-dev misc sync-module-bazel
2623
)
2724

2825
# Update the root lockfile. This is needed for the sync-module-bazel command to work due to circular dependencies.
29-
"$BAZEL" mod deps --lockfile_mode=update
26+
bazel mod deps --lockfile_mode=update
3027
fi
3128
done
3229

@@ -36,7 +33,7 @@ for dir in "${module_dirs[@]}"; do
3633
echo "Processing (Lockfile): $dir"
3734
(
3835
cd "$dir"
39-
"$BAZEL" mod deps --lockfile_mode=update
36+
bazel mod deps --lockfile_mode=update
4037
)
4138
done
4239

0 commit comments

Comments
 (0)