support yarn kbn reset when bazel isn't installed

This commit is contained in:
spalger 2022-09-23 23:21:24 -05:00
parent e91c33e3d1
commit 240241c35c

View file

@ -40,8 +40,10 @@ export const command = {
...(await findPluginCleanPaths(log)),
]);
const quiet = args.getBooleanValue('quiet');
await Bazel.expungeCache(log, { quiet });
await Bazel.cleanDiskCache(log);
if (await Bazel.isInstalled(log)) {
const quiet = args.getBooleanValue('quiet');
await Bazel.expungeCache(log, { quiet });
await Bazel.cleanDiskCache(log);
}
},
};