Skip to content

Commit 96fff43

Browse files
committed
fix(ng-dev): ensure sync-module-bazel uses correct paths when executed in nested directories
1 parent b10dcb7 commit 96fff43

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • ng-dev/misc/sync-module-bazel

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ async function handler() {
6565
if (originalBazelContent !== moduleBazelContent) {
6666
writeFileSync(moduleBazelPath, moduleBazelContent);
6767

68-
await formatFiles(['MODULE.bazel']);
68+
await formatFiles([moduleBazelPath]);
6969

7070
ChildProcess.spawnSync('pnpm', ['bazel', 'mod', 'deps', '--lockfile_mode=update'], {
7171
suppressErrorOnFailingExitCode: true,
72+
cwd: rootDir,
7273
});
7374
}
7475
}

0 commit comments

Comments
 (0)