File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33
4- # Set the BAZEL environment variable to ensure the correct version is used.
5- export BAZEL=" $( pwd) /node_modules/.bin/bazel"
6-
74echo " 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
1310module_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
3128done
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 )
4138done
4239
You can’t perform that action at this time.
0 commit comments