diff --git a/tools/ts-api-guardian/lib/cli.ts b/tools/ts-api-guardian/lib/cli.ts index ac26ab4242..4a5c8115ca 100644 --- a/tools/ts-api-guardian/lib/cli.ts +++ b/tools/ts-api-guardian/lib/cli.ts @@ -66,7 +66,7 @@ export function startCli() { // Under bazel, give instructions how to use bazel run to accept the golden file. if (!!process.env['BAZEL_TARGET']) { console.error('\n\nAccept the new golden file:'); - console.error(` bazel run ${process.env['BAZEL_TARGET']}.accept`); + console.error(` bazel run ${process.env['BAZEL_TARGET'].replace(/_bin$/, "")}.accept`); } process.exit(1); }