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)), ...(await findPluginCleanPaths(log)),
]); ]);
const quiet = args.getBooleanValue('quiet'); if (await Bazel.isInstalled(log)) {
await Bazel.expungeCache(log, { quiet }); const quiet = args.getBooleanValue('quiet');
await Bazel.cleanDiskCache(log); await Bazel.expungeCache(log, { quiet });
await Bazel.cleanDiskCache(log);
}
}, },
}; };