Skip to content

Commit 75b1741

Browse files
committed
fix(ng-dev): use getBazelBin() to get bazel binary
Ensures that bazel is found
1 parent 0c908a4 commit 75b1741

File tree

1 file changed

+2
-1
lines changed
  • ng-dev/misc/sync-module-bazel

1 file changed

+2
-1
lines changed

ng-dev/misc/sync-module-bazel/cli.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {determineRepoBaseDirFromCwd} from '../../utils/repo-directory';
1313
import {PackageJson, syncNodeJs, syncPnpm, syncTypeScript} from './sync-module-bazel';
1414
import {ChildProcess} from '../../utils/child-process';
1515
import {formatFiles} from '../../format/format';
16+
import {getBazelBin} from '../../utils/bazel-bin';
1617

1718
async function builder(argv: Argv) {
1819
return argv;
@@ -67,7 +68,7 @@ async function handler() {
6768

6869
await formatFiles([moduleBazelPath]);
6970

70-
ChildProcess.spawnSync('pnpm', ['bazel', 'mod', 'deps', '--lockfile_mode=update'], {
71+
ChildProcess.spawnSync(getBazelBin(), ['mod', 'deps', '--lockfile_mode=update'], {
7172
suppressErrorOnFailingExitCode: true,
7273
});
7374
}

0 commit comments

Comments
 (0)