build: also validade BUILD.bazel files

This commit is contained in:
Filipe Silva 2020-04-10 12:09:28 +01:00 committed by Douglas Parker
parent 832ffccd46
commit ab5b2eec2c

View File

@ -23,7 +23,7 @@ export default async function (_options: {}, logger: logging.Logger) {
}
// There should be at least one BUILD file next to each package.json.
if (!existsSync(join(pkg.root, 'BUILD'))) {
if (!existsSync(join(pkg.root, 'BUILD')) && !existsSync(join(pkg.root, 'BUILD.bazel'))) {
logger.error(tags.oneLine`
The package ${JSON.stringify(pkgName)} does not have a BUILD file associated to it. You
must either set an exception or make sure it can be built using Bazel.